dev-python/atomicwrites: Add missing mock dep for py2
authorMichał Górny <mgorny@gentoo.org>
Mon, 25 May 2020 15:13:28 +0000 (17:13 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 25 May 2020 16:16:45 +0000 (18:16 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/atomicwrites/atomicwrites-1.3.0.ebuild

index f6db22435cfd3aa7ec708fd3e39a1fb6a41c2cc9..714f4693765fe79784dd61924897031cd6cf213b 100644 (file)
@@ -14,7 +14,12 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="
+       test? (
+               $(python_gen_cond_dep '
+                       dev-python/mock[${PYTHON_USEDEP}]
+               ' -2)
+       )"
 
 distutils_enable_tests pytest
 distutils_enable_sphinx docs \