commit:     a848a49ebb1416d0253fe49033784dda10c03539
Author:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 24 17:31:31 2025 +0000
Commit:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 09:25:09 2025 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a848a49e

dev-python/uhi: add 1.0.0, 9999

Signed-off-by: Alexander Puck Neuwirth <apn-pucky <AT> gentoo.org>

 dev-python/uhi/uhi-1.0.0.ebuild | 35 +++++++++++++++++++++++++++++++++++
 dev-python/uhi/uhi-9999.ebuild  | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-python/uhi/uhi-1.0.0.ebuild b/dev-python/uhi/uhi-1.0.0.ebuild
new file mode 100644
index 000000000..f0f372316
--- /dev/null
+++ b/dev-python/uhi/uhi-1.0.0.ebuild
@@ -0,0 +1,35 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=hatchling
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+inherit distutils-r1
+
+DESCRIPTION="Universal Histogram Interface"
+HOMEPAGE="https://github.com/scikit-hep/uhi";
+
+LICENSE="BSD"
+SLOT="0"
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/scikit-hep/uhi";
+else
+       inherit pypi
+       KEYWORDS="~amd64"
+fi
+
+RDEPEND="
+       >=dev-python/numpy-1.19.3[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               >=dev-python/hist-2.6[${PYTHON_USEDEP}]
+               dev-python/h5py[${PYTHON_USEDEP}]
+               dev-python/fastjsonschema[${PYTHON_USEDEP}]
+               >=dev-python/boost-histogram-1.6.1[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest

diff --git a/dev-python/uhi/uhi-9999.ebuild b/dev-python/uhi/uhi-9999.ebuild
new file mode 100644
index 000000000..f0f372316
--- /dev/null
+++ b/dev-python/uhi/uhi-9999.ebuild
@@ -0,0 +1,35 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=hatchling
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+inherit distutils-r1
+
+DESCRIPTION="Universal Histogram Interface"
+HOMEPAGE="https://github.com/scikit-hep/uhi";
+
+LICENSE="BSD"
+SLOT="0"
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/scikit-hep/uhi";
+else
+       inherit pypi
+       KEYWORDS="~amd64"
+fi
+
+RDEPEND="
+       >=dev-python/numpy-1.19.3[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               >=dev-python/hist-2.6[${PYTHON_USEDEP}]
+               dev-python/h5py[${PYTHON_USEDEP}]
+               dev-python/fastjsonschema[${PYTHON_USEDEP}]
+               >=dev-python/boost-histogram-1.6.1[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest

Reply via email to