From: Robin H. Johnson Date: Tue, 7 Apr 2020 20:55:09 +0000 (-0700) Subject: dev-python/slackclient: build fix X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8c4ad3165847559b0e98b3c12e8ae794a6955d3;p=gentoo.git dev-python/slackclient: build fix Closes: https://bugs.gentoo.org/716536 Signed-off-by: Robin H. Johnson --- diff --git a/dev-python/slackclient/slackclient-2.5.0.ebuild b/dev-python/slackclient/slackclient-2.5.0.ebuild index c5f5e7eec92b..2af67b3adc58 100644 --- a/dev-python/slackclient/slackclient-2.5.0.ebuild +++ b/dev-python/slackclient/slackclient-2.5.0.ebuild @@ -21,3 +21,12 @@ RDEPEND=" " DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] ${RDEPEND}" + +src_prepare() { + # Upstream uses pytest-runner as an extra optional target in setup.py as + # part of tooling to generate distfiles. + sed -i \ + -e '/setup_requires=/s,"pytest-runner",,' \ + "${S}"/setup.py || die + default +}