Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nspektr/
Date: Mon, 09 May 2022 15:01:35
Message-Id: 1652108475.5b8e6481aac750708ebab5aece4c01206f92e951.mgorny@gentoo
1 commit: 5b8e6481aac750708ebab5aece4c01206f92e951
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 9 14:11:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 15:01:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b8e6481
7
8 dev-python/nspektr: Avoid test dep on dev-python/pip
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nspektr/nspektr-0.3.0.ebuild | 11 ++++++-----
13 1 file changed, 6 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-python/nspektr/nspektr-0.3.0.ebuild b/dev-python/nspektr/nspektr-0.3.0.ebuild
16 index 77c24e02b71d..c60b62bda5e4 100644
17 --- a/dev-python/nspektr/nspektr-0.3.0.ebuild
18 +++ b/dev-python/nspektr/nspektr-0.3.0.ebuild
19 @@ -32,14 +32,15 @@ RDEPEND="
20 >=dev-python/importlib_metadata-4.11.2[${PYTHON_USEDEP}]
21 ' 3.8 3.9)
22 "
23 -BDEPEND="
24 - test? (
25 - dev-python/pip[${PYTHON_USEDEP}]
26 - )
27 -"
28
29 distutils_enable_tests pytest
30
31 +src_prepare() {
32 + # avoid unnecessary test dep on pip
33 + sed -i -e 's:pip:pytest:' nspektr/__init__.py || die
34 + distutils-r1_src_prepare
35 +}
36 +
37 src_configure() {
38 grep -q 'build-backend = "setuptools' pyproject.toml ||
39 die "Upstream changed build-backend, recheck"