kmos c45cd79fc7 Add RUN_DEPENDS to TEST_DEPENDS automatically for ports using the
lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.

Idea from afresh1 who pointed out the cpan module already does this.

aja "I support this move."

OK sthen@
2019-05-15 12:04:34 +00:00

35 lines
761 B
Makefile

# $OpenBSD: Makefile,v 1.8 2019/05/15 12:04:37 kmos Exp $
COMMENT = Jupyter notebook format
MODPY_EGG_VERSION = 4.3.0
DISTNAME = nbformat-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 1
CATEGORIES = devel
HOMEPAGE = http://jupyter.org
RUN_DEPENDS = devel/py-ipython_genutils${MODPY_FLAVOR} \
devel/py-traitlets${MODPY_FLAVOR} \
devel/py-jupyter_core${MODPY_FLAVOR}>=4.3.0 \
devel/py-jsonschema${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-testpath${MODPY_FLAVOR}
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_PYTEST = Yes
MODPY_PYTEST_ARGS = nbformat
FLAVORS = python3
FLAVOR ?=
post-install:
mv ${PREFIX}/bin/jupyter-trust ${PREFIX}/bin/jupyter-trust${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>