commit: 5b8e6481aac750708ebab5aece4c01206f92e951
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 9 14:11:29 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 9 15:01:15 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b8e6481
dev-python/nspektr: Avoid test dep on dev-python/pip
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/nspektr/nspektr-0.3.0.ebuild | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dev-python/nspektr/nspektr-0.3.0.ebuild
b/dev-python/nspektr/nspektr-0.3.0.ebuild
index 77c24e02b71d..c60b62bda5e4 100644
--- a/dev-python/nspektr/nspektr-0.3.0.ebuild
+++ b/dev-python/nspektr/nspektr-0.3.0.ebuild
@@ -32,14 +32,15 @@ RDEPEND="
>=dev-python/importlib_metadata-4.11.2[${PYTHON_USEDEP}]
' 3.8 3.9)
"
-BDEPEND="
- test? (
- dev-python/pip[${PYTHON_USEDEP}]
- )
-"
distutils_enable_tests pytest
+src_prepare() {
+ # avoid unnecessary test dep on pip
+ sed -i -e 's:pip:pytest:' nspektr/__init__.py || die
+ distutils-r1_src_prepare
+}
+
src_configure() {
grep -q 'build-backend = "setuptools' pyproject.toml ||
die "Upstream changed build-backend, recheck"