Skip to content

Commit

Permalink
misc/py-hist: Re-add port: Histogramming for analysis powered by boos…
Browse files Browse the repository at this point in the history
…t-histogram
  • Loading branch information
yurivict committed Jul 22, 2023
1 parent 0b8922c commit b6b41ba
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions misc/Makefile
Expand Up @@ -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
Expand Down
39 changes: 39 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
4 changes: 4 additions & 0 deletions 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.

0 comments on commit b6b41ba

Please sign in to comment.