77d68471ad
PR: 267994 Differential revision: D37518 Approved by: bapt
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
PORTNAME= xarray-einstats
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.3.0-4
|
|
DISTVERSIONSUFFIX= -g029341d
|
|
CATEGORIES= devel python
|
|
#MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Stats, linear algebra and einops for xarray
|
|
WWW= https://github.com/arviz-devs/xarray-einstats
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.18,1:math/py-numpy@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pandas>=1.1,1:math/py-pandas@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python:3.8+
|
|
USE_PYTHON= distutils concurrent autoplist pytest
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= arviz-devs
|
|
|
|
TEST_WRKSRC= ${WRKSRC}/src/xarray_einstats # tests are broken, see https://github.com/arviz-devs/xarray-einstats/issues/27
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
# Upstream stopped providing setup.py
|
|
post-patch:
|
|
@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
|
|
|
|
.include <bsd.port.mk>
|