pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-u2f py-u2f: do not TEST_DEPEND on py-fakef...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f83648c6158b
branches:  trunk
changeset: 379155:f83648c6158b
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu May 12 08:15:48 2022 +0000

description:
py-u2f: do not TEST_DEPEND on py-fakefs for Python 2.7

diffstat:

 security/py-u2f/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 99ce42bf175d -r f83648c6158b security/py-u2f/Makefile
--- a/security/py-u2f/Makefile  Thu May 12 08:11:02 2022 +0000
+++ b/security/py-u2f/Makefile  Thu May 12 08:15:48 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/01/27 10:39:35 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2022/05/12 08:15:48 adam Exp $
 
 DISTNAME=      pyu2f-0.1.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -12,12 +12,17 @@
 LICENSE=       apache-2.0
 
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs>=2.4:../../devel/py-fakefs
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=1.0.1:../../devel/py-mock
 # seems unused: https://github.com/google/pyu2f/issues/33
 #TEST_DEPENDS+=        ${PYPKGPREFIX}-unittest2>=0.5.1:../../devel/py-unittest2
 
 USE_LANGUAGES= # none
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} != 27
+TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs>=2.4:../../devel/py-fakefs
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index