diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-22 10:06:33 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-22 21:33:48 +0100 |
commit | e7ed7acf7cbcb4ca7523daf5fa9f213e1bb49a62 (patch) | |
tree | d301e99c66b97cdbecdd7062ca2dc6a77cd16289 | |
parent | 9fbe19661f32270d9e94cbc54905e9d3aafa441b (diff) | |
download | guix-e7ed7acf7cbcb4ca7523daf5fa9f213e1bb49a62.tar.gz guix-e7ed7acf7cbcb4ca7523daf5fa9f213e1bb49a62.zip |
gnu: python-invoke: Refresh style.
* gnu/packages/python-xyz.scm (python-invoke): Use G-expressions, fix
order of fields.
[description]: Fix fill paragraph indentation.
Change-Id: I493bfe2a7308d51c9ef00083f88742e330ad79de
-rw-r--r-- | gnu/packages/python-xyz.scm | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ef66d07167..7c5f0e2102 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26171,37 +26171,38 @@ manipulation and interaction with formal grammars.") (define-public python-invoke (package (name "python-invoke") - (home-page "https://www.pyinvoke.org/") (version "1.6.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "invoke" version)) - (sha256 - (base32 - "1lsql9daabfr31c7syva5myc5bka45k57ygs9fliv63qrwp1wk9p")))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "invoke" version)) + (sha256 + (base32 "1lsql9daabfr31c7syva5myc5bka45k57ygs9fliv63qrwp1wk9p")))) (build-system python-build-system) (arguments + (list ;; XXX: Requires many dependencies that are not yet in Guix. - `(#: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\""))))))))) + #: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 _ + (let ((bash #$(this-package-input "bash-minimal"))) + (substitute* "invoke/config.py" + (("shell = \"/bin/bash\"") + (string-append "shell = \"" bash "/bin/bash\""))))))))) (inputs - `(("bash" ,bash-minimal))) + (list bash-minimal)) + (home-page "https://www.pyinvoke.org/") (synopsis "Pythonic task execution") (description "Invoke is a Python task execution tool and library, drawing inspiration - from various sources to arrive at a powerful and clean feature set. It is - evolved from the Fabric project, but focuses on local and abstract concerns - instead of servers and network commands.") +from various sources to arrive at a powerful and clean feature set. It is +evolved from the Fabric project, but focuses on local and abstract concerns +instead of servers and network commands.") (license license:bsd-3))) (define-public python-automat |