From b8c4ad3165847559b0e98b3c12e8ae794a6955d3 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 7 Apr 2020 13:55:09 -0700 Subject: [PATCH] dev-python/slackclient: build fix Closes: https://bugs.gentoo.org/716536 Signed-off-by: Robin H. Johnson --- dev-python/slackclient/slackclient-2.5.0.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +} -- 2.26.2