commit:     b70b64d8b359f1eb04a6d56078e3cbbcafb205f8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 17:27:43 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 23 17:27:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b70b64d8

dev-python/virtualenv: Skip test deps for non-tested impls

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/virtualenv/virtualenv-20.31.2.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/virtualenv/virtualenv-20.31.2.ebuild 
b/dev-python/virtualenv/virtualenv-20.31.2.ebuild
index 268d20e2e3b5..81a60bc794c3 100644
--- a/dev-python/virtualenv/virtualenv-20.31.2.ebuild
+++ b/dev-python/virtualenv/virtualenv-20.31.2.ebuild
@@ -19,6 +19,8 @@ HOMEPAGE="
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=dev-python/distlib-0.3.7[${PYTHON_USEDEP}]
@@ -34,6 +36,7 @@ RDEPEND="
 BDEPEND="
        dev-python/hatch-vcs[${PYTHON_USEDEP}]
        test? (
+               ${RDEPEND}
                $(python_gen_cond_dep '
                        dev-python/coverage[${PYTHON_USEDEP}]
                        dev-python/flaky[${PYTHON_USEDEP}]
@@ -54,8 +57,6 @@ BDEPEND="
        )
 "
 
-distutils_enable_tests pytest
-
 src_prepare() {
        local PATCHES=(
                # use wheels from ensurepip bundle

Reply via email to