pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-daphne Needs py-test-runner.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae6d9e68fc80
branches:  trunk
changeset: 377946:ae6d9e68fc80
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Mar 24 17:07:06 2018 +0000

description:
Needs py-test-runner.

diffstat:

 www/py-daphne/Makefile |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r dd46d43ab5b7 -r ae6d9e68fc80 www/py-daphne/Makefile
--- a/www/py-daphne/Makefile    Sat Mar 24 17:06:44 2018 +0000
+++ b/www/py-daphne/Makefile    Sat Mar 24 17:07:06 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2018/03/14 08:00:08 adam Exp $
+# $NetBSD: Makefile,v 1.8 2018/03/24 17:07:06 joerg Exp $
 
 DISTNAME=      daphne-2.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -10,13 +10,18 @@
 COMMENT=       HTTP, HTTP2 and WebSocket protocol server for ASGI
 LICENSE=       modified-bsd
 
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27 34
+
 DEPENDS+=      ${PYPKGPREFIX}-asgiref>=2.0:../../www/py-asgiref
 DEPENDS+=      ${PYPKGPREFIX}-autobahn>=0.18:../../www/py-autobahn
 DEPENDS+=      ${PYPKGPREFIX}-twisted>=17.5:../../net/py-twisted
 
-USE_LANGUAGES= # none
-
-PYTHON_VERSIONS_INCOMPATIBLE=  27 34
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} > 30
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+.endif
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && ${MV} daphne daphne-${PYVERSSUFFIX} || ${TRUE}



Home | Main Index | Thread Index | Old Index