pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/py-u2f



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu May 12 08:15:48 UTC 2022

Modified Files:
        pkgsrc/security/py-u2f: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/security/py-u2f/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-u2f/Makefile
diff -u pkgsrc/security/py-u2f/Makefile:1.6 pkgsrc/security/py-u2f/Makefile:1.7
--- pkgsrc/security/py-u2f/Makefile:1.6 Thu Jan 27 10:39:35 2022
+++ pkgsrc/security/py-u2f/Makefile     Thu May 12 08:15:48 2022
@@ -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 @@ COMMENT=    U2F host library for interactin
 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