aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-17 18:39:15 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-18 01:38:08 +0000
commit7c0290f24dd436c4207b8c3f3722723d3a6e4bc6 (patch)
treebd17eda88efb7657ff15d9b4b01223def6db9eb8
parent4a555caa3e15fad722d0966da640ed7ad5a64b94 (diff)
math/py-arviz-base: New port: Base ArviZ features and converters
-rw-r--r--math/Makefile1
-rw-r--r--math/py-arviz-base/Makefile36
-rw-r--r--math/py-arviz-base/distinfo3
-rw-r--r--math/py-arviz-base/files/patch-pyproject.toml20
-rw-r--r--math/py-arviz-base/pkg-descr4
5 files changed, 64 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 9e8e5e66e47d..4ac95d00bead 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -948,6 +948,7 @@
SUBDIR += py-annoy
SUBDIR += py-apgl
SUBDIR += py-arviz
+ SUBDIR += py-arviz-base
SUBDIR += py-arybo
SUBDIR += py-autograd
SUBDIR += py-awkward
diff --git a/math/py-arviz-base/Makefile b/math/py-arviz-base/Makefile
new file mode 100644
index 000000000000..8dd27ee34953
--- /dev/null
+++ b/math/py-arviz-base/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= arviz-base
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.0
+CATEGORIES= math python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Base ArviZ features and converters
+WWW= https://python.arviz.org/projects/base/en/latest/ \
+ https://github.com/arviz-devs/arviz-base
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=1.26.4:math/py-numpy1@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xarray>=2024.11.0:devel/py-xarray@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}h5netcdf>0:science/py-h5netcdf@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 concurrent autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= arviz-devs
+
+NO_ARCH= yes
+
+TEST_ARGS= -p no:benchmark -p no:xdist -p no:relaxed
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 1.0.0: 208 passed in 1.62s
+
+.include <bsd.port.mk>
diff --git a/math/py-arviz-base/distinfo b/math/py-arviz-base/distinfo
new file mode 100644
index 000000000000..bb87ea3a6699
--- /dev/null
+++ b/math/py-arviz-base/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776438805
+SHA256 (arviz-devs-arviz-base-v1.0.0_GH0.tar.gz) = c621c4cabba721303f38557e7aca0685c626085096a896d7c3206cb1ed019f7e
+SIZE (arviz-devs-arviz-base-v1.0.0_GH0.tar.gz) = 2532624
diff --git a/math/py-arviz-base/files/patch-pyproject.toml b/math/py-arviz-base/files/patch-pyproject.toml
new file mode 100644
index 000000000000..02ed539d55fb
--- /dev/null
+++ b/math/py-arviz-base/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2026-04-17 15:46:57 UTC
++++ pyproject.toml
+@@ -5,7 +5,7 @@ readme = "README.md"
+ [project]
+ name = "arviz-base"
+ readme = "README.md"
+-requires-python = ">=3.12"
++requires-python = ">=3.11"
+ license = {file = "LICENSE"}
+ authors = [
+ {name = "ArviZ team", email = "arvizdevs@gmail.com"}
+@@ -25,7 +25,7 @@ dependencies = [
+ ]
+ dynamic = ["version", "description"]
+ dependencies = [
+- "numpy>=2",
++ "numpy>=1.26.4",
+ "xarray>=2024.11.0",
+ "typing-extensions>=3.10",
+ ]
diff --git a/math/py-arviz-base/pkg-descr b/math/py-arviz-base/pkg-descr
new file mode 100644
index 000000000000..5ee95f413384
--- /dev/null
+++ b/math/py-arviz-base/pkg-descr
@@ -0,0 +1,4 @@
+arviz-base provides base ArviZ features and converters. It includes
+functions for data loading, converters from various probabilistic
+programming frameworks, and core data structures for Bayesian model
+analysis.