summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-26 12:39:48 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-26 12:56:00 +0200
commit79ea7c5f43260d1901eb40f1ef53d1f63362631c (patch)
treeed950b3b00351109b9f03345d626d8ca98400f73 /dev-python/radon
parentdev-python/radon: Unpin dev-python/mando dep (diff)
downloadgentoo-79ea7c5f43260d1901eb40f1ef53d1f63362631c.tar.gz
gentoo-79ea7c5f43260d1901eb40f1ef53d1f63362631c.tar.bz2
gentoo-79ea7c5f43260d1901eb40f1ef53d1f63362631c.zip
dev-python/radon: PEP517
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/radon')
-rw-r--r--dev-python/radon/radon-5.1.0-r2.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/radon/radon-5.1.0-r2.ebuild b/dev-python/radon/radon-5.1.0-r2.ebuild
new file mode 100644
index 000000000000..ede29bb7c85b
--- /dev/null
+++ b/dev-python/radon/radon-5.1.0-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Code Metrics in Python"
+HOMEPAGE="
+ https://radon.readthedocs.io/
+ https://github.com/rubik/radon/
+ https://pypi.org/project/radon/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ dev-python/colorama[${PYTHON_USEDEP}]
+ dev-python/flake8[${PYTHON_USEDEP}]
+ dev-python/mando[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+src_prepare() {
+ # unpin the dep
+ sed -i -e '/mando/s:,<0.7::' setup.py || die
+ distutils-r1_src_prepare
+}