git: c544bb5b0cd9 - main - misc/py-hist: New port: Histogramming for analysis powered by boost-histogram

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 20:16:13 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c544bb5b0cd9b2dcb9da584dc9c9d1ba234605a9

commit c544bb5b0cd9b2dcb9da584dc9c9d1ba234605a9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-21 20:13:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-21 20:16:07 +0000

    misc/py-hist: New port: Histogramming for analysis powered by boost-histogram
---
 misc/Makefile          |  1 +
 misc/py-hist/Makefile  | 36 ++++++++++++++++++++++++++
 misc/py-hist/distinfo  |  3 +++
 misc/py-hist/pkg-descr |  6 +++++
 misc/py-hist/pkg-plist | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 115 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index cdd53e136006..db7f80fbfe0e 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -389,6 +389,7 @@
     SUBDIR += py-gluoncv
     SUBDIR += py-gluonnlp
     SUBDIR += py-halo
+    SUBDIR += py-hist
     SUBDIR += py-histoprint
     SUBDIR += py-huepy
     SUBDIR += py-kartograph
diff --git a/misc/py-hist/Makefile b/misc/py-hist/Makefile
new file mode 100644
index 000000000000..b84a2f10ccc0
--- /dev/null
+++ b/misc/py-hist/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	hist
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.6.1-31
+DISTVERSIONSUFFIX=	-g9d6543a
+CATEGORIES=	misc python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Histogramming for analysis powered by boost-histogram
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}boost-histogram>0:misc/py-boost-histogram@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}histoprint>0:misc/py-histoprint@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+		${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python:3.8+
+USE_PYTHON=	distutils autoplist pytest # tests aren't found, see https://github.com/scikit-hep/hist/issues/442
+USE_PYTHON=	build
+
+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..5709c92fd0d8
--- /dev/null
+++ b/misc/py-hist/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659891012
+SHA256 (scikit-hep-hist-v2.6.1-31-g9d6543a_GH0.tar.gz) = fe73499b594c0dde43e1e61e040a47d4682ad2f7497dc7202820f7a2683a44b4
+SIZE (scikit-hep-hist-v2.6.1-31-g9d6543a_GH0.tar.gz) = 983004
diff --git a/misc/py-hist/pkg-descr b/misc/py-hist/pkg-descr
new file mode 100644
index 000000000000..b3428fb8f2a4
--- /dev/null
+++ b/misc/py-hist/pkg-descr
@@ -0,0 +1,6 @@
+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.
+
+WWW: https://hist.readthedocs.io/en/latest/
diff --git a/misc/py-hist/pkg-plist b/misc/py-hist/pkg-plist
new file mode 100644
index 000000000000..3dcf3cd3e589
--- /dev/null
+++ b/misc/py-hist/pkg-plist
@@ -0,0 +1,69 @@
+bin/hist
+%%PYTHON_SITELIBDIR%%/hist-2.6.1.post31.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/hist-2.6.1.post31.dist-info/RECORD
+%%PYTHON_SITELIBDIR%%/hist-2.6.1.post31.dist-info/WHEEL
+%%PYTHON_SITELIBDIR%%/hist-2.6.1.post31.dist-info/entry_points.txt
+%%PYTHON_SITELIBDIR%%/hist-2.6.1.post31.dist-info/licenses/LICENSE
+%%PYTHON_SITELIBDIR%%/hist/__init__.py
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/accumulators%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/accumulators%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/axestuple%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/axestuple%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/basehist%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/basehist%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/classichist%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/classichist%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/hist%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/hist%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/intervals%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/intervals%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/namedhist%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/namedhist%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/numpy%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/numpy%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/plot%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/plot%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/quick_construct%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/quick_construct%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/stack%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/stack%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/storage%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/storage%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/svgplots%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/svgplots%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/svgutils%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/svgutils%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/tag%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/tag%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/typing%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/typing%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/version%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/__pycache__/version%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/accumulators.py
+%%PYTHON_SITELIBDIR%%/hist/axestuple.py
+%%PYTHON_SITELIBDIR%%/hist/axis/__init__.py
+%%PYTHON_SITELIBDIR%%/hist/axis/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/axis/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/axis/__pycache__/transform%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/hist/axis/__pycache__/transform%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/hist/axis/py.typed
+%%PYTHON_SITELIBDIR%%/hist/axis/transform.py
+%%PYTHON_SITELIBDIR%%/hist/basehist.py
+%%PYTHON_SITELIBDIR%%/hist/classichist.py
+%%PYTHON_SITELIBDIR%%/hist/hist.py
+%%PYTHON_SITELIBDIR%%/hist/intervals.py
+%%PYTHON_SITELIBDIR%%/hist/namedhist.py
+%%PYTHON_SITELIBDIR%%/hist/numpy.py
+%%PYTHON_SITELIBDIR%%/hist/plot.py
+%%PYTHON_SITELIBDIR%%/hist/py.typed
+%%PYTHON_SITELIBDIR%%/hist/quick_construct.py
+%%PYTHON_SITELIBDIR%%/hist/stack.py
+%%PYTHON_SITELIBDIR%%/hist/storage.py
+%%PYTHON_SITELIBDIR%%/hist/svgplots.py
+%%PYTHON_SITELIBDIR%%/hist/svgutils.py
+%%PYTHON_SITELIBDIR%%/hist/tag.py
+%%PYTHON_SITELIBDIR%%/hist/typing.py
+%%PYTHON_SITELIBDIR%%/hist/version.py
+%%PYTHON_SITELIBDIR%%/hist/version.pyi