mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 13:17:10 -05:00
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:
parent
6605d9ba35
commit
239c90f4bf
1 changed files with 19 additions and 18 deletions
|
@ -18185,26 +18185,27 @@ (define-public python2-astroid
|
|||
(base32
|
||||
"0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
`(#: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")
|
||||
#t))
|
||||
(delete-file "astroid/tests/unittest_brain.py")))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke"python" "-m" "unittest" "discover"
|
||||
(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-lazy-object-proxy" ,python2-lazy-object-proxy)
|
||||
("python2-singledispatch" ,python2-singledispatch)
|
||||
,@(alist-delete "python-typed-ast"
|
||||
(package-propagated-inputs base)))))))
|
||||
("python2-six" ,python2-six)
|
||||
("python2-wrapt" ,python2-wrapt))))))
|
||||
|
||||
(define-public python-isbnlib
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue