dev-python/uncompyle6: Fix unconditional/missed setup.py test dep
authorBrian Dolbec <dolsen@gentoo.org>
Sun, 13 Nov 2016 19:07:35 +0000 (11:07 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Sun, 13 Nov 2016 19:35:50 +0000 (11:35 -0800)
Fix incorrect pypi id.

Package-Manager: portage-2.3.2_p3

dev-python/uncompyle6/metadata.xml
dev-python/uncompyle6/uncompyle6-2.8.3.ebuild

index e05009f60561c25d44451f67e934e4e3f9de7289..4a97338514150c3a302db87f34270ff3f4c12835 100644 (file)
@@ -14,7 +14,7 @@
                        <email>rb@dustyfeet.com</email>
                        <name>Rocky Bernstein</name>
                </maintainer>
-               <remote-id type="pypi">PyQRCode</remote-id>
+               <remote-id type="pypi">uncompyle6</remote-id>
        </upstream>
        <longdescription></longdescription>
 </pkgmetadata>
index 1fdfe44f5ee9d3b639fbc4e74d6695cdcfc4811c..3007cb166c0af09b8e33099a1d2c11c367ac540d 100644 (file)
@@ -20,12 +20,21 @@ RDEPEND=">=dev-python/xdis-2.3.0
        >=dev-python/spark-parser-1.4.0"
 DEPEND="${RDEPEND}
        test? (
+               >=dev-python/nose-1.0[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
                dev-python/pytest[${PYTHON_USEDEP}]
                dev-python/hypothesis[${PYTHON_USEDEP}]
        )
 "
 
+python_prepare_all() {
+       # Fix an unconditional test only dep
+       sed \
+               -e "s/setup_requires/tests_require/" \
+               -i setup.py
+       distutils-r1_python_prepare_all
+}
+
 # Tests are somewhat sketchy...
 # the main repo has makefiles and commands that don't reflect the actual
 # available options for the commands they are giving.