dev-python/lz4: Fix installation without dev-python/nose installed
authorJustin Lecher <jlec@gentoo.org>
Sat, 10 Oct 2015 14:24:39 +0000 (16:24 +0200)
committerJustin Lecher <jlec@gentoo.org>
Sat, 10 Oct 2015 14:24:39 +0000 (16:24 +0200)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562448

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/lz4/lz4-0.7.0.ebuild

index 5e4d293b9f0ecae7b1b23120707c85be1bcdbc56..c706375fe60e36371ed48c21c00bcdeee34bbe8b 100644 (file)
@@ -20,3 +20,10 @@ RDEPEND=""
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 
 # Tests still excluded by upstream
+
+python_prepare_all() {
+       sed \
+               -e '/nose/s:setup_requires:test_requires:g' \
+               -i setup.py || die
+       distutils-r1_python_prepare_all
+}