git: b6b41ba191e9 - main - misc/py-hist: Re-add port: Histogramming for analysis powered by boost-histogram
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jul 2023 06:48:48 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b6b41ba191e989891a69de7225123003ac76e056
commit b6b41ba191e989891a69de7225123003ac76e056
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-22 05:32:03 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-22 06:48:41 +0000
misc/py-hist: Re-add port: Histogramming for analysis powered by boost-histogram
---
misc/Makefile | 1 +
misc/py-hist/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
misc/py-hist/distinfo | 3 +++
misc/py-hist/pkg-descr | 4 ++++
4 files changed, 47 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index 2ccb33485131..747b20b246ae 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -417,6 +417,7 @@
SUBDIR += py-gluoncv
SUBDIR += py-gluonnlp
SUBDIR += py-halo
+ SUBDIR += py-hist
SUBDIR += py-histoprint
SUBDIR += py-huepy
SUBDIR += py-icoextract
diff --git a/misc/py-hist/Makefile b/misc/py-hist/Makefile
new file mode 100644
index 000000000000..785e654e787b
--- /dev/null
+++ b/misc/py-hist/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= hist
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.7.1
+CATEGORIES= misc python
+#MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Histogramming for analysis powered by boost-histogram
+WWW= https://hist.readthedocs.io/en/latest/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boost-histogram>=1.3.1:misc/py-boost-histogram@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}histoprint>=2.2.0:misc/py-histoprint@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dask>=2022:devel/py-dask@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dask-histogram>=2023.1:devel/py-dask-histogram@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mpl>=0.12:devel/py-pytest-mpl@${PY_FLAVOR}
+ # tests and plotting also need mplhep>=0.2.16 which isn't yet ported
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= scikit-hep
+
+NO_ARCH= yes
+
+MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+BINARY_ALIAS= git=false
+
+.include <bsd.port.mk>
diff --git a/misc/py-hist/distinfo b/misc/py-hist/distinfo
new file mode 100644
index 000000000000..5f9a2d377b9c
--- /dev/null
+++ b/misc/py-hist/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1690000714
+SHA256 (scikit-hep-hist-v2.7.1_GH0.tar.gz) = 4cf53706252ad2cafbdd1f4695ded4bca126718239e569e749ccfb9928b945bc
+SIZE (scikit-hep-hist-v2.7.1_GH0.tar.gz) = 990922
diff --git a/misc/py-hist/pkg-descr b/misc/py-hist/pkg-descr
new file mode 100644
index 000000000000..b4a145f3ccf9
--- /dev/null
+++ b/misc/py-hist/pkg-descr
@@ -0,0 +1,4 @@
+Hist is a powerful Histogramming tool for analysis based on boost-histogram
+(the Python binding of the Histogram library in Boost). It is a friendly
+analysis-focused project that uses boost-histogram as a backend to do the
+work, but provides plotting tools, shortcuts, and new ideas.