diff options
Diffstat (limited to 'security/py-pyopenssl')
| -rw-r--r-- | security/py-pyopenssl/Makefile | 52 | ||||
| -rw-r--r-- | security/py-pyopenssl/distinfo | 3 | ||||
| -rw-r--r-- | security/py-pyopenssl/files/patch-src-OpenSSL-version.py | 11 | ||||
| -rw-r--r-- | security/py-pyopenssl/pkg-descr | 1 |
4 files changed, 67 insertions, 0 deletions
diff --git a/security/py-pyopenssl/Makefile b/security/py-pyopenssl/Makefile new file mode 100644 index 000000000000..82c075521184 --- /dev/null +++ b/security/py-pyopenssl/Makefile @@ -0,0 +1,52 @@ +PORTNAME= pyopenssl +PORTVERSION= 25.3.0 +PORTREVISION= 1 +PORTEPOCH= 1 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python interface to the OpenSSL library +WWW= https://www.pyopenssl.org/en/latest/ \ + https://github.com/pyca/pyopenssl + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-rerunfailures>0:devel/py-pytest-rerunfailures@${PY_FLAVOR} + +USES= cpe python +USE_PYTHON= autoplist concurrent cryptography pep517 pytest pythonprefix + +NO_ARCH= yes + +CPE_VENDOR= jean-paul_calderone + +# These tests will be skipped due the following reasons: +# +# * test_connect_refused: Avoid stalling in build environments that don't have +# a internet connection +# * test_set_verify_callback_exception: Fails on *BSD systems, see also +# https://github.com/pyca/pyopenssl/issues/656 for further details +# * test_connect_ex: succeeds unexpectedly: +# https://github.com/pyca/pyopenssl/issues/1192 +# +# The system clock must be in sync otherwise the test "test_verify_with_time" +# will fail. +PYTEST_IGNORED_TESTS= test_connect_ex \ + test_connect_refused \ + test_set_verify_callback_exception +TEST_ENV= LC_ALL=en_US.UTF-8 \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 31300 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/security/py-pyopenssl/distinfo b/security/py-pyopenssl/distinfo new file mode 100644 index 000000000000..c9a84165ae14 --- /dev/null +++ b/security/py-pyopenssl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759772426 +SHA256 (pyopenssl-25.3.0.tar.gz) = c981cb0a3fd84e8602d7afc209522773b94c1c2446a3c710a75b06fe1beae329 +SIZE (pyopenssl-25.3.0.tar.gz) = 184073 diff --git a/security/py-pyopenssl/files/patch-src-OpenSSL-version.py b/security/py-pyopenssl/files/patch-src-OpenSSL-version.py new file mode 100644 index 000000000000..f5e2c1252144 --- /dev/null +++ b/security/py-pyopenssl/files/patch-src-OpenSSL-version.py @@ -0,0 +1,11 @@ +--- src/OpenSSL/version.py.orig 2025-09-17 00:31:40 UTC ++++ src/OpenSSL/version.py +@@ -19,7 +19,7 @@ __version__ = "25.3.0" + + __version__ = "25.3.0" + +-__title__ = "pyOpenSSL" ++__title__ = "pyopenssl" + __uri__ = "https://pyopenssl.org/" + __summary__ = "Python wrapper module around the OpenSSL library" + __author__ = "The pyOpenSSL developers" diff --git a/security/py-pyopenssl/pkg-descr b/security/py-pyopenssl/pkg-descr new file mode 100644 index 000000000000..b400c8faf0f2 --- /dev/null +++ b/security/py-pyopenssl/pkg-descr @@ -0,0 +1 @@ +Python interface to the OpenSSL library |
