summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-03-22 12:28:28 +0000
committerrillig <rillig@pkgsrc.org>2020-03-22 12:28:28 +0000
commit5aa0ffea0176ab18968dd48507d3ff7233614c19 (patch)
treeb8f41eedda9a6b9ecef8e472bd3b3c3a4e7e4703 /www
parent1b7cc338a6014beaff58581a61e7446be4b51bc2 (diff)
downloadpkgsrc-5aa0ffea0176ab18968dd48507d3ff7233614c19.tar.gz
www/py-*: fix test dependencies for Python 2.7
Diffstat (limited to 'www')
-rw-r--r--www/py-FormEncode/Makefile8
-rw-r--r--www/py-MechanicalSoup/Makefile8
-rw-r--r--www/py-raven/Makefile6
3 files changed, 18 insertions, 4 deletions
diff --git a/www/py-FormEncode/Makefile b/www/py-FormEncode/Makefile
index 62ad89c3082..be3c4ec844a 100644
--- a/www/py-FormEncode/Makefile
+++ b/www/py-FormEncode/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/11/28 06:30:51 adam Exp $
+# $NetBSD: Makefile,v 1.5 2020/03/22 12:28:28 rillig Exp $
DISTNAME= FormEncode-1.3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -16,5 +16,11 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
USE_LANGUAGES= # none
+.include "../../lang/python/pyversion.mk"
+.if ${PYPKGPREFIX} == py27
+TEST_DEPENDS= # none; py-country is incompatible with py27
+do-test:
+.endif
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-MechanicalSoup/Makefile b/www/py-MechanicalSoup/Makefile
index 05882e3a024..32b5cea35bf 100644
--- a/www/py-MechanicalSoup/Makefile
+++ b/www/py-MechanicalSoup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/02/29 19:43:52 adam Exp $
+# $NetBSD: Makefile,v 1.7 2020/03/22 12:28:28 rillig Exp $
DISTNAME= MechanicalSoup-0.12.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -24,5 +24,11 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
USE_LANGUAGES= # none
+.include "../../lang/python/pyversion.mk"
+.if ${PYPKGPREFIX} == py27
+TEST_DEPENDS= # none; py-test-httpbin is incompatible with py27
+do-test:
+.endif
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-raven/Makefile b/www/py-raven/Makefile
index c04d923a7a0..2844ee6e5d8 100644
--- a/www/py-raven/Makefile
+++ b/www/py-raven/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2019/02/18 11:44:22 adam Exp $
+# $NetBSD: Makefile,v 1.9 2020/03/22 12:28:28 rillig Exp $
DISTNAME= raven-6.10.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -43,8 +43,10 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
TEST_DEPENDS+= ${PYPKGPREFIX}-zconfig-[0-9]*:../../devel/py-zconfig
.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == 27
+.if ${PYPKGPREFIX} == py27
DEPENDS+= ${PYPKGPREFIX}-contextlib2-[0-9]*:../../devel/py-contextlib2
+TEST_DEPENDS= # none; py-aiohttp and py-sanic are incompatible with py27
+do-test:
.endif
USE_LANGUAGES= # none