aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2026-04-18 01:40:09 +0000
committerWen Heping <wen@FreeBSD.org>2026-04-18 01:40:50 +0000
commit6c385c8473a52052e8289ee669b78b07447fbcd8 (patch)
tree12b4aefb5281b082eb08c0993a6eebbb6ec409cb
parent0d79a064273aa3b8c6ab70464c9c9937d2318cb3 (diff)
devel/py-lazyarray: New port
lazyarray is a Python package that provides a lazily-evaluated numerical array class, larray, based on and compatible with NumPy arrays. Lazy evaluation means that any operations on the array (potentially including array construction) are not performed immediately, but are delayed until evaluation is specifically requested. Evaluation of only parts of the array is also possible.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-lazyarray/Makefile24
-rw-r--r--devel/py-lazyarray/distinfo3
-rw-r--r--devel/py-lazyarray/files/patch-pyproject.toml11
-rw-r--r--devel/py-lazyarray/pkg-descr7
5 files changed, 46 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f793b51eaa2f..dd6ab52be476 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5252,6 +5252,7 @@
SUBDIR += py-lazy-object-proxy
SUBDIR += py-lazy_imports
SUBDIR += py-lazy_loader
+ SUBDIR += py-lazyarray
SUBDIR += py-legacy-api-wrap
SUBDIR += py-levenshtein
SUBDIR += py-libcst
diff --git a/devel/py-lazyarray/Makefile b/devel/py-lazyarray/Makefile
new file mode 100644
index 000000000000..5d03095bf8f0
--- /dev/null
+++ b/devel/py-lazyarray/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= lazyarray
+PORTVERSION= 0.7.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Python package that provides a lazily-evaluated numerical array class
+WWW= https://github.com/NeuralEnsemble/lazyarray/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy1>=0:math/py-numpy1@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR}
+
+NO_ARCH= yes
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/devel/py-lazyarray/distinfo b/devel/py-lazyarray/distinfo
new file mode 100644
index 000000000000..7bd2b03bf314
--- /dev/null
+++ b/devel/py-lazyarray/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776473160
+SHA256 (lazyarray-0.7.0.tar.gz) = d3607f0e856a5a8807213edc1cf71facf34238d61173280f9671c2844d64bcfa
+SIZE (lazyarray-0.7.0.tar.gz) = 22066
diff --git a/devel/py-lazyarray/files/patch-pyproject.toml b/devel/py-lazyarray/files/patch-pyproject.toml
new file mode 100644
index 000000000000..8908da4a4201
--- /dev/null
+++ b/devel/py-lazyarray/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2026-04-18 00:52:02 UTC
++++ pyproject.toml
+@@ -4,7 +4,7 @@ requires-python = ">=3.10"
+ description = "A Python package that provides a lazily-evaluated numerical array class, larray, based on and compatible with NumPy arrays."
+ readme = "README.rst"
+ requires-python = ">=3.10"
+-license = "BSD-3-Clause"
++license = {text="BSD-3-Clause"}
+ authors = [
+ {name = "Andrew P. Davison", email = "andrew.davison@cnrs.fr"}
+ ]
diff --git a/devel/py-lazyarray/pkg-descr b/devel/py-lazyarray/pkg-descr
new file mode 100644
index 000000000000..d50356563777
--- /dev/null
+++ b/devel/py-lazyarray/pkg-descr
@@ -0,0 +1,7 @@
+lazyarray is a Python package that provides a lazily-evaluated numerical
+array class, larray, based on and compatible with NumPy arrays.
+
+Lazy evaluation means that any operations on the array (potentially including
+array construction) are not performed immediately, but are delayed until
+evaluation is specifically requested. Evaluation of only parts of the array
+is also possible.