dev-python/psutil: Make deps conditional in 5.6.7
authorMichał Górny <mgorny@gentoo.org>
Wed, 19 Feb 2020 07:24:18 +0000 (08:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 19 Feb 2020 07:39:49 +0000 (08:39 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/psutil/psutil-5.6.7-r1.ebuild [moved from dev-python/psutil/psutil-5.6.7.ebuild with 91% similarity]

similarity index 91%
rename from dev-python/psutil/psutil-5.6.7.ebuild
rename to dev-python/psutil/psutil-5.6.7-r1.ebuild
index ca07e5b732d8a4c66c99667d3a3ea8a8ec39d896..251842c884bdac766b460c917a1632f7fe730d70 100644 (file)
@@ -19,8 +19,10 @@ RESTRICT="!test? ( test )"
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
        test? (
-               dev-python/mock[${PYTHON_USEDEP}]
-               dev-python/ipaddress[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       dev-python/mock[${PYTHON_USEDEP}]
+                       dev-python/ipaddress[${PYTHON_USEDEP}]
+               ' -2)
        )
 "