| @@ -1,31 +1,31 @@ | | | @@ -1,31 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.44 2017/07/03 20:25:05 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.45 2017/07/03 20:56:04 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= pyOpenSSL-17.1.0 | | 3 | DISTNAME= pyOpenSSL-17.1.0 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} |
5 | CATEGORIES= security python | | 5 | CATEGORIES= security python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyOpenSSL/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyOpenSSL/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://github.com/pyca/pyopenssl/ | | 9 | HOMEPAGE= https://github.com/pyca/pyopenssl/ |
10 | COMMENT= Python interface to the OpenSSL library | | 10 | COMMENT= Python interface to the OpenSSL library |
11 | LICENSE= apache-2.0 | | 11 | LICENSE= apache-2.0 |
12 | | | 12 | |
13 | DEPENDS+= ${PYPKGPREFIX}-cryptography>=0.3:../../security/py-cryptography | | 13 | DEPENDS+= ${PYPKGPREFIX}-cryptography>=0.3:../../security/py-cryptography |
14 | DEPENDS+= ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six | | 14 | DEPENDS+= ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six |
15 | # TEST_DEPENDS | | 15 | # TEST_DEPENDS |
16 | BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 16 | BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
| | | 17 | BUILD_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend |
17 | | | 18 | |
18 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
19 | .if ${OPSYS} == "Darwin" | | 20 | .if ${OPSYS} == "Darwin" |
20 | do-test: | | 21 | do-test: |
21 | cd ${WRKSRC} && PYTHONPATH=src py.test-${PYVERSSUFFIX} -v -k "not test_verify_with_time and not test_set_default_verify_paths and not test_set_verify_callback_exception" | | 22 | cd ${WRKSRC} && PYTHONPATH=src py.test-${PYVERSSUFFIX} -v -k "not test_verify_with_time and not test_set_default_verify_paths and not test_set_verify_callback_exception" |
22 | .else | | 23 | .else |
23 | # https://github.com/pyca/pyopenssl/issues/596 | | 24 | # https://github.com/pyca/pyopenssl/issues/656 |
24 | # https://github.com/pyca/pyopenssl/issues/650 | | | |
25 | do-test: | | 25 | do-test: |
26 | cd ${WRKSRC} && PYTHONPATH=src py.test-${PYVERSSUFFIX} -v -k "not load_privatekey_passphrase_exception and not test_load_privatekey_wrongPassphraseCallback and not test_load_privatekey_passphraseCallback and not test_load_privatekey_passphrase_wrong_return_type and not test_load_privatekey_passphrase_callback_length and not test_dump_privatekey_passphrase_callback and not test_dump_privatekey_passphrase_exception and not test_dump_privatekey_passphraseCallbackLength and not test_set_passwd_cb and not test_passwd_callback_exception and not test_passwd_callback_false and not test_passwd_callback_non_string and not test_passwd_callback_too_long and not test_set_info_callback and not test_load_verify_bytes_cafile and not test_load_verify_unicode_cafile and not test_load_verify_directory_bytes_capath and not test_load_verify_directory_unicode_capath and not test_set_default_verify_paths and not test_set_verify_callback_connection_argument and not test_no_servername and not test_servername and not test_npn_success and not test_npn_client_fail and not test_npn_select_error and not test_npn_advertise_error and not test_alpn_success and not test_alpn_set_on_connection and not test_alpn_server_fail and not test_alpn_callback_exception and not test_get_peer_cert_chain and not test_memory_connect and not test_outgoing_overflow and not test_set_empty_ca_list and not test_set_one_ca_list and not test_set_multiple_ca_list and not test_reset_ca_list and not test_mutated_ca_list and not test_one_add_client and not test_multiple_add_client_ca and not test_set_and_add_client_ca and not test_set_after_add_client_ca and not test_client_negotiates_without_server and not test_client_receives_servers_data and not test_callbacks_are_invoked_with_connections and not test_opaque_data_is_passed_through and not test_server_returns_empty_string and not test_client_returns_false_terminates_handshake and not test_exceptions_in_client_bubble_up and not test_exceptions_in_server_bubble_up and not test_server_must_return_bytes" | | 26 | cd ${WRKSRC} && PYTHONPATH=src py.test-${PYVERSSUFFIX} -v |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
29 | .include "../../lang/python/egg.mk" | | 29 | .include "../../lang/python/egg.mk" |
30 | .include "../../security/openssl/buildlink3.mk" | | 30 | .include "../../security/openssl/buildlink3.mk" |
31 | .include "../../mk/bsd.pkg.mk" | | 31 | .include "../../mk/bsd.pkg.mk" |