summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-09 14:49:01 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-09 15:01:23 +0100
commitcf61afb6a01536828f1b88421c2b1c63ce9479ca (patch)
tree696d68ccd00676fd61c01fc99c9b3177ff061ec2 /dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild
parentdev-python/humanize: Remove stale pypy3.7 deps (diff)
downloadgentoo-cf61afb6a01536828f1b88421c2b1c63ce9479ca.tar.gz
gentoo-cf61afb6a01536828f1b88421c2b1c63ce9479ca.tar.bz2
gentoo-cf61afb6a01536828f1b88421c2b1c63ce9479ca.zip
dev-python/importlib_metadata: Remove stale pypy3.7 deps
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild')
-rw-r--r--dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild b/dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild
new file mode 100644
index 000000000000..03ff76d7912b
--- /dev/null
+++ b/dev-python/importlib_metadata/importlib_metadata-4.8.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# NB: this package extends beyond built-in importlib stuff in py3.8+
+# new entry_point API not yet included in cpython release
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Read metadata from Python packages"
+HOMEPAGE="https://github.com/python/importlib_metadata"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+RDEPEND="
+ dev-python/zipp[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyfakefs[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/importlib_resources[${PYTHON_USEDEP}]
+ ' pypy3 python3_8)
+ )
+"
+
+distutils_enable_sphinx docs dev-python/jaraco-packaging dev-python/rst-linker
+distutils_enable_tests unittest
+
+python_prepare_all() {
+ # Skip a test that requires pep517 which is not in the tree
+ sed -e 's:test_find_local:_&:' -i tests/test_integration.py || die
+
+ distutils-r1_python_prepare_all
+}