commit:     a00db1fc41fc8e3850be968e1f3b1907e3920eaf
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Wed Mar 20 07:08:31 2024 +0000
Commit:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
CommitDate: Wed Mar 20 10:22:16 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a00db1fc

sci-physics/scikit-hep-testdata: new package, add 0.4.39

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

 sci-physics/scikit-hep-testdata/metadata.xml       | 19 ++++++++++++++
 .../scikit-hep-testdata-0.4.39.ebuild              | 30 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/sci-physics/scikit-hep-testdata/metadata.xml 
b/sci-physics/scikit-hep-testdata/metadata.xml
new file mode 100644
index 000000000..ea2e37599
--- /dev/null
+++ b/sci-physics/scikit-hep-testdata/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 common package to provide example files (e.g. ROOT) for testing and 
developing packages against. The sample of files is representative of typical 
files found "in the wild".
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">scikit-hep-testdata</remote-id>
+               <remote-id 
type="github">scikit-hep/scikit-hep-testdata</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/sci-physics/scikit-hep-testdata/scikit-hep-testdata-0.4.39.ebuild 
b/sci-physics/scikit-hep-testdata/scikit-hep-testdata-0.4.39.ebuild
new file mode 100644
index 000000000..47d0f0bbd
--- /dev/null
+++ b/sci-physics/scikit-hep-testdata/scikit-hep-testdata-0.4.39.ebuild
@@ -0,0 +1,30 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="A package to provide example files for testing and developing 
packages against."
+HOMEPAGE="https://github.com/scikit-hep/scikit-hep-testdata";
+# pypi does not include the data nor tests
+SRC_URI="https://github.com/scikit-hep/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.gh.tar.gz"
+S="${WORKDIR}/${P}"
+# export is needed here!
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+# otherwise we don't install the data
+export SKHEP_DATA=1
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       dev-python/pyyaml[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest

Reply via email to