From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/root_numpy/Manifest | 1 + dev-python/root_numpy/metadata.xml | 22 ++++++++++++ dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild | 46 ++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 dev-python/root_numpy/Manifest create mode 100644 dev-python/root_numpy/metadata.xml create mode 100644 dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild (limited to 'dev-python/root_numpy') 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 @@ + + + + + sci-physics@gentoo.org + Gentoo Physics Project + + + 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. + + + root_numpy + rootpy/root_numpy + + gentoo-staging + 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 +} -- cgit v1.3.1