diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-13 21:08:53 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-13 21:40:57 +0100 |
commit | f4e4f89e625e2e6c1497cf39bd2d2b2c9310d2bd (patch) | |
tree | cb4ac5f83eab3981551341d9f52cbfb24fc24ca9 /dev-python/rpy2 | |
parent | Rename dev-python/{subunit → python-subunit} (diff) | |
download | gentoo-f4e4f89e625e2e6c1497cf39bd2d2b2c9310d2bd.tar.gz gentoo-f4e4f89e625e2e6c1497cf39bd2d2b2c9310d2bd.tar.bz2 gentoo-f4e4f89e625e2e6c1497cf39bd2d2b2c9310d2bd.zip |
Rename dev-python/{rpy → rpy2}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/rpy2')
-rw-r--r-- | dev-python/rpy2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/rpy2/metadata.xml | 19 | ||||
-rw-r--r-- | dev-python/rpy2/rpy2-3.5.14.ebuild | 48 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/rpy2/Manifest b/dev-python/rpy2/Manifest new file mode 100644 index 000000000000..4b05cc402c2c --- /dev/null +++ b/dev-python/rpy2/Manifest @@ -0,0 +1 @@ +DIST rpy2-3.5.14.tar.gz 219268 BLAKE2B 167284d4974710121475d83aada49e128566f075276f5f641096f6ce94c236c315617df2847504e0e3ca804090e1f422fa1b53a4a37b60f1c5bcdba8c0b059ff SHA512 d02454fb41c946a0a92547f8a5dba3c614741bec8e293984116b34dfbe97574a655b7066fd75d34fee4c0f604c41c8b672d6a2c3b4194cba30a37c95da6578dd diff --git a/dev-python/rpy2/metadata.xml b/dev-python/rpy2/metadata.xml new file mode 100644 index 000000000000..98f720adecd9 --- /dev/null +++ b/dev-python/rpy2/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + RPy provides a robust Python interface to the R programming + language. It can manage R objects and can execute arbitrary R + functions. All the errors from the R language are converted to + Python exceptions. + </longdescription> + <upstream> + <remote-id type="github">rpy2/rpy2</remote-id> + <remote-id type="pypi">rpy2</remote-id> + <remote-id type="sourceforge">rpy</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/rpy2/rpy2-3.5.14.ebuild b/dev-python/rpy2/rpy2-3.5.14.ebuild new file mode 100644 index 000000000000..0aa15c9b861d --- /dev/null +++ b/dev-python/rpy2/rpy2-3.5.14.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_REQ_USE="sqlite" +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi optfeature + +DESCRIPTION="Python interface to the R language" +HOMEPAGE=" + https://rpy2.github.io/ + https://github.com/rpy2/rpy2 + https://pypi.org/project/rpy/ +" +SRC_URI="$(pypi_sdist_url rpy2)" +S="${WORKDIR}/rpy2-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-lang/R-4.0 + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/jinja2[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/tzlocal[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +pkg_postinst() { + optfeature "ipython integration" dev-python/ipython + optfeature "numpy integration" dev-python/numpy + optfeature "pandas integration" dev-python/pandas +} |