Files
Yasuhiro Kimura 4c8cf03f5b security/py-openssl: Add devel/py-typing-extensions to RUN_DEPENDS
Unless typing-extensions is installed, runtime error happens as
following.

Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 5, in <module>
    from certbot.main import main
  File "/usr/local/lib/python3.11/site-packages/certbot/main.py", line 6, in <module>
    from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py", line 20, in <module>
    import josepy as jose
  File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", line 41, in <module>
    from josepy.json_util import (
  File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", line 25, in <module>
    from OpenSSL import crypto
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/SSL.py", line 42, in <module>
    from OpenSSL.crypto import (
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/crypto.py", line 26, in <module>
    from typing_extensions import deprecated
ModuleNotFoundError: No module named 'typing_extensions'

PR:		286283
Reported by:	Dean E. Weimer
Approved by:	portmgr (implicit, just fix it)
Fixes:		e4937425f2 security/py-openssl: Update to 25.0.0
2025-04-28 09:59:48 +09:00

47 lines
1.5 KiB
Makefile

PORTNAME= openssl
PORTVERSION= 25.0.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyopenssl-${PORTVERSION}
MAINTAINER= sbz@FreeBSD.org
COMMENT= Python interface to the OpenSSL library
WWW= https://github.com/pyca/pyopenssl
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9:devel/py-typing-extensions@${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 distutils pytest pythonprefix
NO_ARCH= yes
CPE_VENDOR= jean-paul_calderone
CPE_PRODUCT= py${PORTNAME}
# 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.mk>