Lines 1-5
Link Here
|
1 |
PORTNAME= openssl |
1 |
PORTNAME= openssl |
2 |
DISTVERSION= 21.0.0 |
2 |
PORTVERSION= 23.2.0 |
3 |
PORTEPOCH= 1 |
3 |
PORTEPOCH= 1 |
4 |
CATEGORIES= security python |
4 |
CATEGORIES= security python |
5 |
MASTER_SITES= PYPI |
5 |
MASTER_SITES= PYPI |
Lines 13-52
WWW= https://github.com/pyca/pyopenssl
Link Here
|
13 |
LICENSE= APACHE20 |
13 |
LICENSE= APACHE20 |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
15 |
|
16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.5.2:devel/py-six@${PY_FLAVOR} |
|
|
17 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.1:devel/py-pytest@${PY_FLAVOR} \ |
16 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.1:devel/py-pytest@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \ |
20 |
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
19 |
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
21 |
|
20 |
|
22 |
USES= cpe python pycryptography:run |
21 |
USES= cpe python pycryptography:run |
23 |
USE_PYTHON= autoplist concurrent distutils pythonprefix |
22 |
USE_PYTHON= autoplist concurrent distutils pytest pythonprefix |
24 |
|
23 |
|
25 |
NO_ARCH= yes |
24 |
NO_ARCH= yes |
26 |
|
25 |
|
27 |
CPE_VENDOR= jean-paul_calderone |
26 |
CPE_VENDOR= jean-paul_calderone |
28 |
CPE_PRODUCT= py${PORTNAME} |
27 |
CPE_PRODUCT= py${PORTNAME} |
29 |
|
28 |
|
30 |
# Use options.mk to use OSVERSION and handle redefine PORTEPOCH |
|
|
31 |
.include <bsd.port.options.mk> |
32 |
|
33 |
# We need to keep old py-cryptography and py-penssl for 11.x release |
34 |
# due to outdated OpenSSL version in base |
35 |
|
36 |
# These tests will be skipped due the following reasons: |
29 |
# These tests will be skipped due the following reasons: |
37 |
# |
30 |
# |
38 |
# * test_connect_refused: Avoid stalling in build environments that don't have |
31 |
# * test_connect_refused: Avoid stalling in build environments that don't have |
39 |
# a internet connection |
32 |
# a internet connection |
40 |
# * test_set_verify_callback_exception: Fails on *BSD systems, see also |
33 |
# * test_set_verify_callback_exception: Fails on *BSD systems, see also |
41 |
# https://github.com/pyca/pyopenssl/issues/656 for further details |
34 |
# https://github.com/pyca/pyopenssl/issues/656 for further details |
|
|
35 |
# * test_connect_ex: succeeds unexpectedly: |
36 |
# https://github.com/pyca/pyopenssl/issues/1192 |
42 |
# |
37 |
# |
43 |
# The system clock must be in sync otherwise the test "test_verify_with_time" |
38 |
# The system clock must be in sync otherwise the test "test_verify_with_time" |
44 |
# will fail. |
39 |
# will fail. |
45 |
do-test: |
40 |
PYTEST_IGNORED_TESTS= test_connect_ex \ |
46 |
@cd ${WRKSRC} && ${SET_ENV} LC_ALL=en_US.UTF-8 ${TEST_ENV} \ |
41 |
test_connect_refused \ |
47 |
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ |
42 |
test_set_verify_callback_exception |
48 |
${PYTHON_CMD} -m pytest -rs -v -k \ |
43 |
TEST_ENV= LC_ALL=en_US.UTF-8 \ |
49 |
'not test_connect_refused and \ |
44 |
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
50 |
not test_set_verify_callback_exception' |
|
|
51 |
|
45 |
|
52 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.mk> |