dev-python/pathlib2: Add missing test-DEP on dev-python/mock
authorMichał Górny <mgorny@gentoo.org>
Sun, 4 Mar 2018 08:22:45 +0000 (09:22 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 4 Mar 2018 11:19:28 +0000 (12:19 +0100)
Closes: https://bugs.gentoo.org/649536

dev-python/pathlib2/pathlib2-2.3.0.ebuild

index c23057673735e09e565c8f51c369bbdffdc7ef7a..c95eda55919dccccac8e11df14ea733f415e4aec 100644 (file)
@@ -14,13 +14,15 @@ SRC_URI="mirror://pypi/p/pathlib2/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
-       $(python_gen_cond_dep 'dev-python/scandir[${PYTHON_USEDEP}]' 'python2*' python3_4 pypy )
+       $(python_gen_cond_dep 'dev-python/scandir[${PYTHON_USEDEP}]' -2 python3_4 )
        dev-python/six[${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]"
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )"
 
 python_test() {
        "${EPYTHON}" test_pathlib2.py || die