diff --git a/no-crypt-with-python-313.patch b/no-crypt-with-python-313.patch new file mode 100644 index 0000000..0c768b1 --- /dev/null +++ b/no-crypt-with-python-313.patch @@ -0,0 +1,15 @@ +Index: passlib-1.7.4/passlib/tests/utils.py +=================================================================== +--- passlib-1.7.4.orig/passlib/tests/utils.py ++++ passlib-1.7.4/passlib/tests/utils.py +@@ -3360,6 +3360,10 @@ class OsCryptMixin(HandlerCase): + if hasattr(self.handler, "orig_prefix"): + raise self.skipTest("not applicable to wrappers") + ++ # crypt module removed in Python 3.13 ++ if sys.version_info[:2] >= (3, 13): ++ raise self.skipTest("no crypt module with Python 3.13") ++ + # look for first entry that matches current system + # XXX: append "/" + platform.release() to string? + # XXX: probably should rework to support rows being dicts w/ "minver" / "maxver" keys, diff --git a/python-passlib.changes b/python-passlib.changes index 5bd0995..33acb71 100644 --- a/python-passlib.changes +++ b/python-passlib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 11 04:34:50 UTC 2024 - Steve Kowalik + +- Add patch no-crypt-with-python-313.patch: + * Do not run tests requiring 'crypt' with Python 3.13. + ------------------------------------------------------------------- Thu Sep 26 10:44:49 UTC 2024 - Markéta Machová diff --git a/python-passlib.spec b/python-passlib.spec index efc9a8f..753f954 100644 --- a/python-passlib.spec +++ b/python-passlib.spec @@ -36,6 +36,8 @@ URL: https://foss.heptapod.net/python-libs/passlib Source: https://files.pythonhosted.org/packages/source/p/passlib/passlib-%{version}.tar.gz # PATCH-FIX-OPENSUSE Posted to https://foss.heptapod.net/python-libs/passlib/-/issues/185 Patch0: no-pkg_resources.patch +# PATCH-FIX-OPENSUSE Skip crypt tests under Python 3.13 +Patch1: no-crypt-with-python-313.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel}