diff options
Diffstat (limited to 'sci-physics/pylhe/pylhe-0.8.0.ebuild')
-rw-r--r-- | sci-physics/pylhe/pylhe-0.8.0.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sci-physics/pylhe/pylhe-0.8.0.ebuild b/sci-physics/pylhe/pylhe-0.8.0.ebuild new file mode 100644 index 000000000..45ef91695 --- /dev/null +++ b/sci-physics/pylhe/pylhe-0.8.0.ebuild @@ -0,0 +1,35 @@ +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +DISTUTILS_USE_PEP517=setuptools +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/graphviz-0.12.0[${PYTHON_USEDEP}] + >=sci-physics/particle-0.16[${PYTHON_USEDEP}] + >=dev-python/awkward-1.2.0[${PYTHON_USEDEP}] + >=dev-python/vector-0.8.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/setuptools-scm[${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 |