commit:     fbec5fbdba3df94db37a5fcfcd0a1751e568e571
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 13 21:45:01 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Nov 13 21:46:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbec5fbd

dev-python/yarl: disable pytest-runner requirement (bug 599672)

Package-Manager: portage-2.3.2

 dev-python/yarl/yarl-0.7.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/yarl/yarl-0.7.0.ebuild 
b/dev-python/yarl/yarl-0.7.0.ebuild
index 260259a..07320e7 100644
--- a/dev-python/yarl/yarl-0.7.0.ebuild
+++ b/dev-python/yarl/yarl-0.7.0.ebuild
@@ -19,6 +19,12 @@ IUSE="test"
 DEPEND="test? ( dev-python/pytest-runner[${PYTHON_USEDEP}] )
        dev-python/setuptools[${PYTHON_USEDEP}]"
 
+src_prepare() {
+       # pytest-runner is not really required unless tests are enabled
+       sed -e "s:'pytest-runner',\\?::" -i setup.py || die
+       distutils-r1_src_prepare
+}
+
 python_test() {
        esetup.py test || die
 }

Reply via email to