commit:     5edb5364f5454e45df68b8fca3b621352e7905e8
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Tue Feb 27 14:03:00 2024 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
CommitDate: Tue Feb 27 16:07:10 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=5edb5364

dev-python/uhi: new package, add 0.4.0

Closes: https://github.com/gentoo/sci/pull/1245
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>

 dev-python/uhi/metadata.xml     | 19 +++++++++++++++++++
 dev-python/uhi/uhi-0.4.0.ebuild | 27 +++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/uhi/metadata.xml b/dev-python/uhi/metadata.xml
new file mode 100644
index 000000000..c1ee047a1
--- /dev/null
+++ b/dev-python/uhi/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alexander Puck Neuwirth</name>
+       </maintainer>
+       <longdescription lang="en">
+       This is a package meant primarily for documenting histogram indexing 
and the PlottableHistogram Protocol and any future cross-library standards. It 
also contains the code for the PlottableHistogram Protocol, to be used in type 
checking libraries wanting to conform to the protocol. Eventually, it might 
gain a set of tools for testing conformance to UHI indexing, as well. It is not 
usually a runtime dependency, but only a type checking, testing, and/or docs 
dependency in support of other libraries (such as boost-histogram 0.13+, hist 
2.1+, mplhep 0.2.15+, uproot 4+, and histoprint 2+). There are a few useful 
runtime usable components (listed below). It requires Python 3.6+. See what's 
new.
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">uhi</remote-id>
+               <remote-id type="github">scikit-hep/uhi</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/uhi/uhi-0.4.0.ebuild b/dev-python/uhi/uhi-0.4.0.ebuild
new file mode 100644
index 000000000..89db57b1c
--- /dev/null
+++ b/dev-python/uhi/uhi-0.4.0.ebuild
@@ -0,0 +1,27 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_USE_PEP517=hatchling
+SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+inherit distutils-r1 pypi
+
+DESCRIPTION="Universal Histogram Interface"
+HOMEPAGE="https://github.com/scikit-hep/uhi";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/boost-histogram[${PYTHON_USEDEP}]
+       )
+"
+BDEPEND="
+       ${RDEPEND}
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest

Reply via email to