aboutsummaryrefslogtreecommitdiff
path: root/devel/py-xarray-einstats/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-xarray-einstats/Makefile')
-rw-r--r--devel/py-xarray-einstats/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/py-xarray-einstats/Makefile b/devel/py-xarray-einstats/Makefile
new file mode 100644
index 000000000000..135d4438a12c
--- /dev/null
+++ b/devel/py-xarray-einstats/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= xarray-einstats
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.3.0-4
+DISTVERSIONSUFFIX= -g029341d
+CATEGORIES= devel python
+#MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Stats, linear algebra and einops for xarray
+
+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>