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

33 lines
654 B
Makefile

# $OpenBSD: Makefile,v 1.4 2019/05/15 12:04:39 kmos Exp $
COMMENT = Python package for describing statistical models
MODPY_EGG_VERSION = 0.4.1
DISTNAME = patsy-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = math
REVISION = 1
# BSD
PERMIT_PACKAGE_CDROM = Yes
EXTRACT_SUFX = .zip
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS = devel/py-six${MODPY_FLAVOR} \
math/py-numpy${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
math/py-scipy${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
do-test:
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX} patsy
.include <bsd.port.mk>