commit:     ab732cf20f58ea846df09d674cee384786395ef0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 08:38:33 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 11:01:04 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab732cf2

dev-python/nose: Enable py3.8

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

 dev-python/nose/nose-1.3.7-r4.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-python/nose/nose-1.3.7-r4.ebuild 
b/dev-python/nose/nose-1.3.7-r4.ebuild
index 0784e9e8437..333bd6d07d1 100644
--- a/dev-python/nose/nose-1.3.7-r4.ebuild
+++ b/dev-python/nose/nose-1.3.7-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 )
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy pypy3 )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1
@@ -21,16 +21,22 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips 
~ppc ~ppc64 ~s390 ~s
 IUSE="coverage doc examples test"
 RESTRICT="!test? ( test )"
 
+COVERAGE_IMPLS=( -2 python3_{5,6,7} pypy3 )
 REQUIRED_USE="
+       coverage? ( || ( $(python_gen_useflags "${COVERAGE_IMPLS[@]}") ) )
        doc? ( || ( $(python_gen_useflags 'python2*') ) )"
 
 RDEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
-       coverage? ( dev-python/coverage[${PYTHON_USEDEP}] )"
+       coverage? (
+               $(python_gen_cond_dep 'dev-python/coverage[${PYTHON_USEDEP}]' \
+                       "${COVERAGE_IMPLS[@]}")
+       )"
 DEPEND="${RDEPEND}
-       doc? ( >=dev-python/sphinx-0.6[${PYTHON_USEDEP}] )
+       doc? ( >=dev-python/sphinx-0.6[$(python_gen_usedep 'python2*')] )
        test? (
-               dev-python/coverage[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep 'dev-python/coverage[${PYTHON_USEDEP}]' \
+                       "${COVERAGE_IMPLS[@]}")
                $(python_gen_cond_dep 'dev-python/twisted[${PYTHON_USEDEP}]' 
python2_7 python3_{5,6})
        )"
 

Reply via email to