diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-08-16 18:06:40 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-08-16 18:25:06 +0000 |
| commit | 94a9bb31149d932bef1a1dd5b86fb5c1709ca48c (patch) | |
| tree | c8e4ba166204e829a21e1d20b08e4a4c46e158ca | |
| parent | dd4c723cf21014947a5f26be34a4fb1180886190 (diff) | |
math/py-awkward: Add py-awkward 2.3.1
Awkward Array is a library for nested, variable-sized data, including
arbitrary-length lists, records, mixed types, and missing data, using NumPy-like
idioms.
Arrays are dynamically typed, but operations on them are compiled and fast.
Their behavior coincides with NumPy when array dimensions are regular and
generalizes when they're not.
| -rw-r--r-- | math/Makefile | 1 | ||||
| -rw-r--r-- | math/py-awkward/Makefile | 36 | ||||
| -rw-r--r-- | math/py-awkward/distinfo | 3 | ||||
| -rw-r--r-- | math/py-awkward/pkg-descr | 7 |
4 files changed, 47 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 7fea1dcd2f10..3f4a236988a9 100644 --- a/math/Makefile +++ b/math/Makefile @@ -892,6 +892,7 @@ SUBDIR += py-arviz SUBDIR += py-arybo SUBDIR += py-autograd + SUBDIR += py-awkward SUBDIR += py-baycomp SUBDIR += py-bayesian-optimization SUBDIR += py-benford_py diff --git a/math/py-awkward/Makefile b/math/py-awkward/Makefile new file mode 100644 index 000000000000..1d6bd755e0c0 --- /dev/null +++ b/math/py-awkward/Makefile @@ -0,0 +1,36 @@ +PORTNAME= awkward +PORTVERSION= 2.3.1 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Manipulate JSON-like data with NumPy-like idioms +WWW= https://awkward-array.org/doc/main/ \ + https://github.com/scikit-hep/awkward + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=1.10.0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}awkward-cpp>=21<21_99:math/py-awkward-cpp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.18.0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR} +.endif + +.if ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.1.0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/math/py-awkward/distinfo b/math/py-awkward/distinfo new file mode 100644 index 000000000000..c171a6dfecce --- /dev/null +++ b/math/py-awkward/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069900 +SHA256 (awkward-2.3.1.tar.gz) = 34b44e5c46e1e0c2af045ba3fb8f966b6bb7ecff6fb90d16c3c90af82616b791 +SIZE (awkward-2.3.1.tar.gz) = 5065864 diff --git a/math/py-awkward/pkg-descr b/math/py-awkward/pkg-descr new file mode 100644 index 000000000000..c51304bd8dfc --- /dev/null +++ b/math/py-awkward/pkg-descr @@ -0,0 +1,7 @@ +Awkward Array is a library for nested, variable-sized data, including +arbitrary-length lists, records, mixed types, and missing data, using NumPy-like +idioms. + +Arrays are dynamically typed, but operations on them are compiled and fast. +Their behavior coincides with NumPy when array dimensions are regular and +generalizes when they're not. |
