python-trustme/fix2038.patch
Markéta Machová b60b3a6941 - Update to 1.2.0
* Add support for Python 3.13. (#664)
  * Allow setting of cert's notBefore attribute (#628)
  * Add the Authority Key Identifier extension to child
    CA certificates. (#642)
  * Remove support for Python 3.8 and PyPy 3.9. (#664)
- Drop add-aki-to-child-certs.patch, merged upstream
- Drop fix2038.patch, fixed upstream
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trustme?expand=0&rev=31
2024-11-05 15:39:59 +00:00

18 lines
743 B
Diff

Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2023-01-14
Subject: Fix tests of python-aiosmtplib after 2038
Index: trustme-1.0.0/src/trustme/__init__.py
===================================================================
--- trustme-1.0.0.orig/src/trustme/__init__.py
+++ trustme-1.0.0/src/trustme/__init__.py
@@ -37,7 +37,7 @@ __all__ = ["CA"]
# Some versions of cryptography on 32-bit platforms fail if you give
# them dates after ~2038-01-19:
# https://github.com/pyca/cryptography/pull/4658
-DEFAULT_EXPIRY = datetime.datetime(2038, 1, 1)
+DEFAULT_EXPIRY = datetime.datetime(2098, 1, 1)
def _name(name: str, organization_name: Optional[str] = None, common_name: Optional[str] = None) -> x509.Name:
name_pieces = [