diff options
Diffstat (limited to 'security/py-python-pkcs11/files')
-rw-r--r-- | security/py-python-pkcs11/files/patch-pyproject.toml | 39 | ||||
-rw-r--r-- | security/py-python-pkcs11/files/patch-setup.py | 31 |
2 files changed, 70 insertions, 0 deletions
diff --git a/security/py-python-pkcs11/files/patch-pyproject.toml b/security/py-python-pkcs11/files/patch-pyproject.toml new file mode 100644 index 000000000000..df5030c3b30f --- /dev/null +++ b/security/py-python-pkcs11/files/patch-pyproject.toml @@ -0,0 +1,39 @@ +Revert: https://github.com/pyauth/python-pkcs11/commit/d45957fd94abfd01b47cbf6a5b96862cf542dfbb + +--- pyproject.toml.orig 2025-06-22 05:22:53 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=80.8", "cython", "setuptools-scm>=8.3.1"] ++requires = ["setuptools>=61", "cython", "setuptools-scm>=8"] + build-backend = "setuptools.build_meta" + + [project] +@@ -24,7 +24,7 @@ dependencies = ["asn1crypto>=1.5.1"] + "Topic :: Security :: Cryptography", + ] + dependencies = ["asn1crypto>=1.5.1"] +-license = "MIT" ++license = {text = "MIT"} + requires-python = ">=3.9" + dynamic = ["version"] + +@@ -49,11 +49,6 @@ combine-as-imports = true + + [tool.ruff.lint.isort] + combine-as-imports = true +- +-[tool.setuptools] +-ext-modules = [ +- {name = "pkcs11._pkcs11", sources = ["pkcs11/_pkcs11.pyx"]} +-] + + [tool.cibuildwheel.linux] + archs = ["auto64"] +@@ -96,4 +91,4 @@ dev = [ + { include-group = "release" }, + ] + +-[tool.setuptools_scm] +\ No newline at end of file ++[tool.setuptools_scm] diff --git a/security/py-python-pkcs11/files/patch-setup.py b/security/py-python-pkcs11/files/patch-setup.py new file mode 100644 index 000000000000..83b827201bbe --- /dev/null +++ b/security/py-python-pkcs11/files/patch-setup.py @@ -0,0 +1,31 @@ +Revert: https://github.com/pyauth/python-pkcs11/commit/d45957fd94abfd01b47cbf6a5b96862cf542dfbb + +--- setup.py.orig 2025-06-27 14:01:42 UTC ++++ setup.py +@@ -0,0 +1,26 @@ ++# Add cython extension module to build configuration. ++# ++# See also: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html ++ ++import platform ++ ++from setuptools import Extension, setup ++ ++libraries = [] ++ ++# if compiling using MSVC, we need to link against user32 library ++if platform.system() == "Windows": ++ libraries.append("user32") ++ ++ ++setup( ++ ext_modules=[ ++ Extension( ++ name="pkcs11._pkcs11", ++ sources=[ ++ "pkcs11/_pkcs11.pyx", ++ ], ++ libraries=libraries, ++ ), ++ ], ++) |