From 2476e6e6009db0cc4806b335aba6cc5bd335f4de Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sat, 19 Oct 2024 14:51:34 +0200 Subject: sci-physics/mplhep: new package, add 0.3.53 Signed-off-by: Alexander Puck Neuwirth --- sci-physics/mplhep/Manifest | 1 + sci-physics/mplhep/metadata.xml | 19 +++++++++++++ sci-physics/mplhep/mplhep-0.3.53.ebuild | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 sci-physics/mplhep/Manifest create mode 100644 sci-physics/mplhep/metadata.xml create mode 100644 sci-physics/mplhep/mplhep-0.3.53.ebuild diff --git a/sci-physics/mplhep/Manifest b/sci-physics/mplhep/Manifest new file mode 100644 index 000000000..34a7cdb3d --- /dev/null +++ b/sci-physics/mplhep/Manifest @@ -0,0 +1 @@ +DIST mplhep-0.3.53.tar.gz 1520164 BLAKE2B 282455c7c9291641d0bf59a1b14a3d899d0ca3af40ad437c6b2238040b953eea7eaa51011f89a5e12a13c26856a5850122870961fa19621f7a090700627c89c3 SHA512 e3496bedbd9310271a01817374a6b006322f04fcc98ed9d31cb066cc79d9cc907c5541bf4acbe97347ae8c742116c5cba9a73166fd54c35d8fb91808a07871ad 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 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + alexander@neuwirth-informatik.de + Alexander Puck Neuwirth + + + 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). + + + mplhep + scikit-hep/mplhep + + 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 -- cgit v1.2.3-65-gdbad