pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py27-cryptography py27-cryptography: Restore ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/801911ab5e03
branches:  trunk
changeset: 386995:801911ab5e03
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Oct 19 13:18:46 2022 +0000

description:
py27-cryptography: Restore support for Python 3, we want this because
it doesn't require rust

diffstat:

 security/py27-cryptography/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 72bd256a40cd -r 801911ab5e03 security/py27-cryptography/Makefile
--- a/security/py27-cryptography/Makefile       Wed Oct 19 13:18:32 2022 +0000
+++ b/security/py27-cryptography/Makefile       Wed Oct 19 13:18:46 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2022/07/08 13:54:42 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2022/10/19 13:18:46 nia Exp $
 
 DISTNAME=      cryptography-3.3.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,8 +12,6 @@
 LICENSE=       apache-2.0 OR modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.11.4:../../devel/py-cffi
-DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
-DEPENDS+=      ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.4.1:../../lang/py-six
 # not available for python27
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-cryptography_vectors-[0-9]*:../../security/py-cryptography_vectors
@@ -23,7 +21,11 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test4
 TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis4
 
-PYTHON_VERSIONS_ACCEPTED=      27
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+DEPENDS+=      ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
+.endif
 
 do-test:
        cd ${WRKSRC} && pytest-${PYVERSSUFFIX}



Home | Main Index | Thread Index | Old Index