From 2edb3dcb57a562191f7e9f79d09bdea3b6d18e9c Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Sat, 7 Dec 2019 12:06:09 -0800 Subject: [PATCH] dev-python/intreehooks: New package Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Patrick McLean --- dev-python/intreehooks/Manifest | 1 + dev-python/intreehooks/intreehooks-1.0.ebuild | 40 +++++++++++++++++++ dev-python/intreehooks/metadata.xml | 12 ++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-python/intreehooks/Manifest create mode 100644 dev-python/intreehooks/intreehooks-1.0.ebuild create mode 100644 dev-python/intreehooks/metadata.xml diff --git a/dev-python/intreehooks/Manifest b/dev-python/intreehooks/Manifest new file mode 100644 index 000000000000..cde19e0d6481 --- /dev/null +++ b/dev-python/intreehooks/Manifest @@ -0,0 +1 @@ +DIST intreehooks-1.0.tar.gz 2701 BLAKE2B 2c82bae05cf3fc3bde13e8dd2ffb9d1ef79edc6711b5038f6f9b3dddd863492be24a425bf848c9868ecf730f813243fb5fa50ebfad52b44341be18e72727f195 SHA512 5a020dd6bd7994eca5f476618f57e2d86567756fae74f6fa50b6fbc96accfe8db910f3175bafa3ce85f37b05edc05ca1042dcec78407a241cfaffc0a0e997f4e diff --git a/dev-python/intreehooks/intreehooks-1.0.ebuild b/dev-python/intreehooks/intreehooks-1.0.ebuild new file mode 100644 index 000000000000..a2471a84947a --- /dev/null +++ b/dev-python/intreehooks/intreehooks-1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) +inherit distutils-r1 + +DESCRIPTION="Load a PEP 517 backend from inside the source tree" +HOMEPAGE="https://pypi.org/project/intreehooks https://github.com/takluyver/intreehooks" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=" + dev-python/toml[${PYTHON_USEDEP}] +" +BDEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # replace pytoml with toml + sed -e 's:pytoml:toml:' \ + -i setup.py intreehooks.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + local -a DOCS=( README.rst ) + use examples && dodoc -r examples + + distutils-r1_python_install_all +} diff --git a/dev-python/intreehooks/metadata.xml b/dev-python/intreehooks/metadata.xml new file mode 100644 index 000000000000..34d6356499c1 --- /dev/null +++ b/dev-python/intreehooks/metadata.xml @@ -0,0 +1,12 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + + intreehooks + takluyver/intreehooks + + -- 2.26.2