diff --git a/security/py-python-pkcs11/Makefile b/security/py-python-pkcs11/Makefile index 04f66b983840..ea2e064d2724 100644 --- a/security/py-python-pkcs11/Makefile +++ b/security/py-python-pkcs11/Makefile @@ -1,28 +1,28 @@ PORTNAME= python-pkcs11 PORTVERSION= 0.9.3 CATEGORIES= security python MASTER_SITES= PYPI \ https://github.com/pyauth/python-pkcs11/releases/download/v${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= python_pkcs11-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= PKCS\#11 (Cryptoki) support for Python WWW= https://python-pkcs11.readthedocs.io/en/latest/ \ https://github.com/danni/python-pkcs11 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.3.1:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=0:devel/py-asn1crypto@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent cython pep517 post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/security/py-python-pkcs11/files/patch-pyproject.toml b/security/py-python-pkcs11/files/patch-pyproject.toml index df5030c3b30f..b7b2a6f7a80a 100644 --- a/security/py-python-pkcs11/files/patch-pyproject.toml +++ b/security/py-python-pkcs11/files/patch-pyproject.toml @@ -1,39 +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"] ++requires = ["setuptools>=61", "cython", "setuptools-scm>=8.3.1"] 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]