mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 13:17:10 -05:00
gnu: python-invoke: Delete incompatible and unused code.
* gnu/packages/python-xyz.scm (python-invoke)[arguments]: Add build phase 'delete-python2-code. (python2-invoke)[arguments]: Remove that phase and add 'delete-python3-code.
This commit is contained in:
parent
f862d7fb8d
commit
72876fb02d
1 changed files with 15 additions and 4 deletions
|
@ -17862,14 +17862,15 @@ (define-public python-invoke
|
|||
`(#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'delete-python2-code
|
||||
(lambda _
|
||||
(delete-file-recursively "invoke/vendor/yaml2")))
|
||||
(add-after 'unpack 'fix-bash-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((bash (assoc-ref inputs "bash")))
|
||||
(substitute* "invoke/config.py"
|
||||
(("shell = \"/bin/bash\"")
|
||||
(string-append "shell = \"" bash "/bin/bash\""))
|
||||
)
|
||||
#t))))))
|
||||
(string-append "shell = \"" bash "/bin/bash\"")))))))))
|
||||
(inputs
|
||||
`(("bash" ,bash-minimal)))
|
||||
(synopsis "Pythonic task execution")
|
||||
|
@ -17881,7 +17882,17 @@ (define-public python-invoke
|
|||
(license license:bsd-3)))
|
||||
|
||||
(define-public python2-invoke
|
||||
(package-with-python2 python-invoke))
|
||||
(let ((parent (package-with-python2 python-invoke)))
|
||||
(package
|
||||
(inherit parent)
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments parent)
|
||||
((#:phases phases #t)
|
||||
`(modify-phases ,phases
|
||||
(delete 'delete-python2-code)
|
||||
(add-after 'unpack 'delete-python3-code
|
||||
(lambda _
|
||||
(delete-file-recursively "invoke/vendor/yaml3"))))))))))
|
||||
|
||||
(define-public python-automat
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue