commit:     9301e93e2cd907717b466693e0564cbfda6364dd
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 13 19:07:35 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Nov 13 19:35:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9301e93e

dev-python/uncompyle6: Fix unconditional/missed setup.py test dep

Fix incorrect pypi id.

Package-Manager: portage-2.3.2_p3

 dev-python/uncompyle6/metadata.xml            | 2 +-
 dev-python/uncompyle6/uncompyle6-2.8.3.ebuild | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-python/uncompyle6/metadata.xml 
b/dev-python/uncompyle6/metadata.xml
index e05009f..4a97338 100644
--- a/dev-python/uncompyle6/metadata.xml
+++ b/dev-python/uncompyle6/metadata.xml
@@ -14,7 +14,7 @@
                        <email>[email protected]</email>
                        <name>Rocky Bernstein</name>
                </maintainer>
-               <remote-id type="pypi">PyQRCode</remote-id>
+               <remote-id type="pypi">uncompyle6</remote-id>
        </upstream>
        <longdescription></longdescription>
 </pkgmetadata>

diff --git a/dev-python/uncompyle6/uncompyle6-2.8.3.ebuild 
b/dev-python/uncompyle6/uncompyle6-2.8.3.ebuild
index 1fdfe44..3007cb1 100644
--- a/dev-python/uncompyle6/uncompyle6-2.8.3.ebuild
+++ b/dev-python/uncompyle6/uncompyle6-2.8.3.ebuild
@@ -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.

Reply via email to