gnu: python2-astroid: Add missing input and don't inherit.

* gnu/packages/python-xyz.scm (python2-astroid)[arguments]: Do not inherit
from Python 3 package variant.
[propagated-inputs]: Do not inherit and add python2-six.
This commit is contained in:
Ricardo Wurmus 2021-11-24 14:07:39 +01:00
parent 6605d9ba35
commit 239c90f4bf
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -18185,26 +18185,27 @@ (define-public python2-astroid
(base32
"0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:phases phases)
`(modify-phases ,phases
(add-after 'unpack 'remove-spurious-test
(lambda _
;; https://github.com/PyCQA/astroid/issues/276
(delete-file "astroid/tests/unittest_brain.py")
#t))
(replace 'check
(lambda _
(invoke"python" "-m" "unittest" "discover"
"-p" "unittest*.py")))))))
`(#:python ,python-2
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-spurious-test
(lambda _
;; https://github.com/PyCQA/astroid/issues/276
(delete-file "astroid/tests/unittest_brain.py")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "discover"
"-p" "unittest*.py")))))))
(native-inputs `())
(propagated-inputs
`(("python2-backports-functools-lru-cache"
,python2-backports-functools-lru-cache)
("python2-enum34" ,python2-enum34)
("python2-singledispatch" ,python2-singledispatch)
,@(alist-delete "python-typed-ast"
(package-propagated-inputs base)))))))
`(("python2-backports-functools-lru-cache"
,python2-backports-functools-lru-cache)
("python2-enum34" ,python2-enum34)
("python2-lazy-object-proxy" ,python2-lazy-object-proxy)
("python2-singledispatch" ,python2-singledispatch)
("python2-six" ,python2-six)
("python2-wrapt" ,python2-wrapt))))))
(define-public python-isbnlib
(package