diff --git a/dev-python/mccabe/mccabe-0.4.0.ebuild b/dev-python/mccabe/mccabe-0.4.0.ebuild index a4d4a64c00f1e..5aa2253a9708a 100644 --- a/dev-python/mccabe/mccabe-0.4.0.ebuild +++ b/dev-python/mccabe/mccabe-0.4.0.ebuild @@ -21,7 +21,12 @@ SLOT="0" RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/pytest-runner[${PYTHON_USEDEP}]" + test? ( dev-python/pytest-runner[${PYTHON_USEDEP}] )" + +src_prepare() { + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_src_prepare +} python_test() { ${EPYTHON} test_mccabe.py || die