diff options
Diffstat (limited to 'dev-python/root_numpy')
| -rw-r--r-- | dev-python/root_numpy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/root_numpy/metadata.xml | 22 | ||||
| -rw-r--r-- | dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild | 46 |
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-python/root_numpy/Manifest b/dev-python/root_numpy/Manifest new file mode 100644 index 000000000000..c4c95d223d40 --- /dev/null +++ b/dev-python/root_numpy/Manifest @@ -0,0 +1 @@ +DIST root_numpy-4.7.3.tar.gz 522432 BLAKE2B 9aab3090c894d8917218a68d83269c0f426ee4e7f81628081e9e710c4239bba5e8f88dcb1d91156cf02c7c36b1ee5d03cdd0c3931ca6e2f3eee6c78201386705 SHA512 7c2684ac0e4e68676304e2a72c7169e0299cfea5b4b63f2525a422974ca83f9c9b4f9f11d992acef7d8565cda7f7a85bd13621513cd7c47f1887aaa0cc46d6e7 diff --git a/dev-python/root_numpy/metadata.xml b/dev-python/root_numpy/metadata.xml new file mode 100644 index 000000000000..e81c1b1aa327 --- /dev/null +++ b/dev-python/root_numpy/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-physics@gentoo.org</email> + <name>Gentoo Physics Project</name> + </maintainer> + <longdescription lang="en"> + root_numpy is a Python extension for converting ROOT TTrees into + NumPy recarrays or structured arrays. With the core internals + written in C++, root_numpy can efficiently handle large amounts of + data (limited only by the available memory). + Now that your ROOT data is in NumPy form, you can make use of the many + powerful scientific Python packages or perform quick exploratory data + analysis in interactive environments like IPython. +</longdescription> + <upstream> + <remote-id type="pypi">root_numpy</remote-id> + <remote-id type="github">rootpy/root_numpy</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild b/dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild new file mode 100644 index 000000000000..8333f8841970 --- /dev/null +++ b/dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="Interface between ROOT and numpy" +HOMEPAGE="https://github.com/rootpy/root_numpy" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + ') + sci-physics/root:=[python,${PYTHON_SINGLE_USEDEP}]" + +DEPEND="${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/nose[${PYTHON_MULTI_USEDEP}] ) + ')" + +python_test() { + cd "${BUILD_DIR}" || die + nosetests -v || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docinto examples + dodoc -r tutorial/. + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} |
