sharlatan pushed a commit to branch master
in repository guix.

commit 7ad53f737a56ec34a97e753da23491fab8b34662
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Apr 22 12:10:20 2025 +0100

    gnu: python-invoke: Update to 2.2.0.
    
    * gnu/packages/python-xyz.scm (python-invoke): Update to 2.2.0.
    [arguments] <phases>: Remove 'delete-python2-code as "vendor/yaml2" no
    longer exists.
    [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: Ia2ddbbae377aeac1273fdb64cf6296d70d644ecd
---
 gnu/packages/python-xyz.scm | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c5f0e2102..0efb835cef 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26171,29 +26171,33 @@ manipulation and interaction with formal grammars.")
 (define-public python-invoke
   (package
     (name "python-invoke")
-    (version "1.6.0")
+    (version "2.2.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "invoke" version))
        (sha256
-        (base32 "1lsql9daabfr31c7syva5myc5bka45k57ygs9fliv63qrwp1wk9p"))))
-    (build-system python-build-system)
+        (base32 "1mbbixban0238bwkadgynw60n0jrq1ja5wl4zv3mka7i388bnv7f"))))
+    ;; TODO: invoke/vendor contains:
+    ;; - fluidity -> https://github.com/nsi-iff/fluidity   (14y old)
+    ;; - lexicon  -> https://github.com/bitprophet/lexicon (2y old)
+    ;; - yaml     -> https://github.com/yaml/pyyaml        (2y old)
+    (build-system pyproject-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 _
               (let ((bash #$(this-package-input "bash-minimal")))
                 (substitute* "invoke/config.py"
                   (("shell = \"/bin/bash\"")
                    (string-append "shell = \"" bash "/bin/bash\"")))))))))
+    (native-inputs
+     (list python-setuptools
+           python-wheel))
     (inputs
      (list bash-minimal))
     (home-page "https://www.pyinvoke.org/";)

Reply via email to