dev-python/slackclient: build fix
authorRobin H. Johnson <robbat2@gentoo.org>
Tue, 7 Apr 2020 20:55:09 +0000 (13:55 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Tue, 7 Apr 2020 20:55:41 +0000 (13:55 -0700)
Closes: https://bugs.gentoo.org/716536
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
dev-python/slackclient/slackclient-2.5.0.ebuild

index c5f5e7eec92be7832977a635f87445e244588518..2af67b3adc5813fe58c576492a231d33d8d6c271 100644 (file)
@@ -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
+}