| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.13 2019/10/09 10:41:02 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.14 2020/04/26 10:01:38 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= jupyter_client-5.3.4 | | 3 | DISTNAME= jupyter_client-5.3.4 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=j/jupyter_client/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=j/jupyter_client/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://jupyter.org/ | | 9 | HOMEPAGE= https://jupyter.org/ |
10 | COMMENT= Jupyter protocol implementation and client libraries | | 10 | COMMENT= Jupyter protocol implementation and client libraries |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.1:../../time/py-dateutil | | 13 | DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.1:../../time/py-dateutil |
14 | DEPENDS+= ${PYPKGPREFIX}-jupyter_core-[0-9]*:../../devel/py-jupyter_core | | 14 | DEPENDS+= ${PYPKGPREFIX}-jupyter_core-[0-9]*:../../devel/py-jupyter_core |
| @@ -18,19 +18,25 @@ DEPENDS+= ${PYPKGPREFIX}-zmq>=13.0.0:../ | | | @@ -18,19 +18,25 @@ DEPENDS+= ${PYPKGPREFIX}-zmq>=13.0.0:../ |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-ipykernel-[0-9]*:../../devel/py-ipykernel | | 18 | TEST_DEPENDS+= ${PYPKGPREFIX}-ipykernel-[0-9]*:../../devel/py-ipykernel |
19 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 19 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
20 | | | 20 | |
21 | PYTHON_VERSIONED_DEPENDENCIES= ipython:test | | 21 | PYTHON_VERSIONED_DEPENDENCIES= ipython:test |
22 | | | 22 | |
23 | USE_LANGUAGES= # none | | 23 | USE_LANGUAGES= # none |
24 | | | 24 | |
25 | post-install: | | 25 | post-install: |
26 | cd ${DESTDIR}${PREFIX}/bin && \ | | 26 | cd ${DESTDIR}${PREFIX}/bin && \ |
27 | ${MV} jupyter-kernel jupyter-kernel-${PYVERSSUFFIX} && \ | | 27 | ${MV} jupyter-kernel jupyter-kernel-${PYVERSSUFFIX} && \ |
28 | ${MV} jupyter-kernelspec jupyter-kernelspec-${PYVERSSUFFIX} && \ | | 28 | ${MV} jupyter-kernelspec jupyter-kernelspec-${PYVERSSUFFIX} && \ |
29 | ${MV} jupyter-run jupyter-run-${PYVERSSUFFIX} || ${TRUE} | | 29 | ${MV} jupyter-run jupyter-run-${PYVERSSUFFIX} || ${TRUE} |
30 | | | 30 | |
| | | 31 | .include "../../lang/python/pyversion.mk" |
| | | 32 | .if ${PYPKGPREFIX} == py27 |
| | | 33 | TEST_DEPENDS= # none; py-ipykernel is incompatible with py27 |
| | | 34 | do-test: |
| | | 35 | .else |
31 | do-test: | | 36 | do-test: |
32 | cd ${WRKSRC} && py.test-${PYVERSSUFFIX} | | 37 | cd ${WRKSRC} && py.test-${PYVERSSUFFIX} |
| | | 38 | .endif |
33 | | | 39 | |
34 | .include "../../lang/python/egg.mk" | | 40 | .include "../../lang/python/egg.mk" |
35 | .include "../../lang/python/versioned_dependencies.mk" | | 41 | .include "../../lang/python/versioned_dependencies.mk" |
36 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |