freebsd-ports/science/py-thewalrus/Makefile
Dmitry Marakasov 77d68471ad */*: rename CHEESESHOP to PYPI in MASTER_SITES
PR:			267994
Differential revision:	D37518
Approved by:		bapt
2023-01-11 18:58:34 +03:00

41 lines
1.2 KiB
Makefile

PORTNAME= thewalrus
DISTVERSIONPREFIX= v
DISTVERSION= 0.19.0
CATEGORIES= science python
#MASTER_SITES= PYPI # doesn't contain tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Open source library for hafnian calculation
WWW= https://github.com/XanaduAI/thewalrus
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
PY_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}dask>0:devel/py-dask@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
TEST_DEPENDS= gmake:devel/gmake \
${PYTHON_PKGNAMEPREFIX}flaky>=3.7.0:devel/py-flaky@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-randomly>0:devel/py-pytest-randomly@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= XanaduAI
NO_ARCH= yes
BINARY_ALIAS= python3=${PYTHON_CMD}
do-test: # testsuite fails to run: https://github.com/XanaduAI/thewalrus/issues/344
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} test
.include <bsd.port.mk>