commit:     2476e6e6009db0cc4806b335aba6cc5bd335f4de
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Sat Oct 19 12:51:34 2024 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
CommitDate: Tue Oct 22 08:32:33 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=2476e6e6

sci-physics/mplhep: new package, add 0.3.53

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>

 sci-physics/mplhep/metadata.xml         | 19 +++++++++++++
 sci-physics/mplhep/mplhep-0.3.53.ebuild | 47 +++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/sci-physics/mplhep/metadata.xml b/sci-physics/mplhep/metadata.xml
new file mode 100644
index 000000000..e8b27c898
--- /dev/null
+++ b/sci-physics/mplhep/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">
+       A set of helpers for matplotlib to more easily produce plots typically 
needed in HEP as well as style them in way that's compatible with current 
collaboration requirements (ROOT-like plots for CMS, ATLAS, LHCb, ALICE).
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">mplhep</remote-id>
+               <remote-id type="github">scikit-hep/mplhep</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/sci-physics/mplhep/mplhep-0.3.53.ebuild 
b/sci-physics/mplhep/mplhep-0.3.53.ebuild
new file mode 100644
index 000000000..ed147722d
--- /dev/null
+++ b/sci-physics/mplhep/mplhep-0.3.53.ebuild
@@ -0,0 +1,47 @@
+EAPI=8
+
+# wait for pytest-mpl before adding 3_13
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517=hatchling
+inherit distutils-r1 pypi
+
+DESCRIPTION="Histogram plots using matplotlib and HEP compatible styling ROOT."
+HOMEPAGE="
+       https://mplhep.readthedocs.io
+       https://github.com/scikit-hep/mplhep
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/matplotlib-3.4[${PYTHON_USEDEP}]
+       >=dev-python/numpy-1.16.0[${PYTHON_USEDEP}]
+       sci-physics/mplhep-data[${PYTHON_USEDEP}]
+       dev-python/packaging[${PYTHON_USEDEP}]
+       >=dev-python/uhi-0.2.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               dev-python/boost-histogram[${PYTHON_USEDEP}]
+               dev-python/hist[${PYTHON_USEDEP}]
+               dev-python/pytest-mock[${PYTHON_USEDEP}]
+               dev-python/pytest-mpl[${PYTHON_USEDEP}]
+               >=dev-python/pytest-6.0[${PYTHON_USEDEP}]
+               sci-physics/scikit-hep-testdata[${PYTHON_USEDEP}]
+               >=dev-python/scipy-1.1.0[${PYTHON_USEDEP}]
+               sci-physics/uproot[${PYTHON_USEDEP}]
+       )
+"
+
+# we do not want to care about old uproot4
+EPYTEST_DESELECT=(
+       'tests/test_inputs.py::test_inputs_uproot'
+       'tests/test_inputs.py::test_uproot_versions[png]'
+       'tests/test_inputs.py::test_uproot_versions[pdf]'
+       'tests/test_inputs.py::test_uproot_versions[svg]'
+)
+
+distutils_enable_tests pytest

Reply via email to