diff options
-rw-r--r-- | dev-python/pathlib2/pathlib2-2.3.0.ebuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-python/pathlib2/pathlib2-2.3.0.ebuild b/dev-python/pathlib2/pathlib2-2.3.0.ebuild index c23057673735..c95eda55919d 100644 --- a/dev-python/pathlib2/pathlib2-2.3.0.ebuild +++ b/dev-python/pathlib2/pathlib2-2.3.0.ebuild @@ -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 |