dev-python/nose: Port to py3.9
authorMichał Górny <mgorny@gentoo.org>
Mon, 25 May 2020 12:44:14 +0000 (14:44 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 25 May 2020 12:44:33 +0000 (14:44 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/nose/nose-1.3.7-r5.ebuild

index 8ce50a05b18a1897052e29e3a1676aa4036922a8..0b0eda13af0492a79bb6ce697d102c84a5295e97 100644 (file)
@@ -4,7 +4,7 @@
 EAPI=7
 
 DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
+PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1
@@ -22,11 +22,15 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
 IUSE="coverage examples test"
 RESTRICT="!test? ( test )"
 
+COV_DEP="
+       $(python_gen_cond_dep '
+               dev-python/coverage[${PYTHON_USEDEP}]
+       ' python2_7 python3_{6,7,8} pypy3)"
 RDEPEND="
-       coverage? ( dev-python/coverage[${PYTHON_USEDEP}] )"
+       coverage? ( ${COV_DEP} )"
 DEPEND="${RDEPEND}
        test? (
-               dev-python/coverage[${PYTHON_USEDEP}]
+               ${COV_DEP}
                $(python_gen_cond_dep '
                        dev-python/twisted[${PYTHON_USEDEP}]
                ' python2_7 python3_{6,7,8})