Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-networkx math/py-networkx: Fix running tests.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/880471fc0ea8
branches:  trunk
changeset: 437223:880471fc0ea8
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Tue Aug 18 20:15:04 2020 +0000

description:
math/py-networkx: Fix running tests.

diffstat:

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

diffs (27 lines):

diff -r 191bdf84e99c -r 880471fc0ea8 math/py-networkx/Makefile
--- a/math/py-networkx/Makefile Tue Aug 18 20:14:54 2020 +0000
+++ b/math/py-networkx/Makefile Tue Aug 18 20:15:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2020/04/11 07:45:41 adam Exp $
+# $NetBSD: Makefile,v 1.32 2020/08/18 20:15:04 riastradh Exp $
 
 DISTNAME=      networkx-2.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -11,11 +11,16 @@
 LICENSE=       modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-decorator>=4.3.0:../../devel/py-decorator
-TEST_DEPENDS+= ${PYPKGPREFIX}-nose>=1.3.7:../../devel/py-nose
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+do-test:
+       ${RUN} cd ${WRKSRC} && \
+       ${SETENV} ${TEST_ENV} \
+       pytest-${PYVERSSUFFIX} --pyargs networkx
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index