commit: b287fbf69ac063852a492127f0212955d6d9f1da
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
AuthorDate: Mon Jan 27 08:46:04 2025 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
CommitDate: Mon Jan 27 08:47:33 2025 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b287fbf6
sci-physics/pylhe: add 0.9.1
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/pylhe/pylhe-0.9.1.ebuild | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/sci-physics/pylhe/pylhe-0.9.1.ebuild
b/sci-physics/pylhe/pylhe-0.9.1.ebuild
new file mode 100644
index 000000000..fa3002e86
--- /dev/null
+++ b/sci-physics/pylhe/pylhe-0.9.1.ebuild
@@ -0,0 +1,34 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=hatchling
+inherit distutils-r1 pypi
+
+DESCRIPTION="Lightweight Python interface to read Les Houches Event (LHE)
files"
+HOMEPAGE="https://github.com/scikit-hep/pylhe"
+# pypi does not include tests
+SRC_URI="https://github.com/scikit-hep/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
+# export is needed here!
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/awkward-1.2.0[${PYTHON_USEDEP}]
+ >=dev-python/graphviz-0.12.0[${PYTHON_USEDEP}]
+ >=sci-physics/particle-0.16[${PYTHON_USEDEP}]
+ >=dev-python/vector-0.8.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+ test? (
+ >=sci-physics/scikit-hep-testdata-0.4.36[${PYTHON_USEDEP}]
+ )
+"
+PATCHES=(
+ "${FILESDIR}/${PN}"-0.7.0-coverage.patch
+)
+
+distutils_enable_tests pytest