guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 67aa42fce341c4cbc3f200bceb37b7db3f75ba6b
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Thu Nov 27 17:22:49 2025 +0900

    gnu: python-invoke: Workaround a recent regression with entry points.
    
    This works around a recent regression introduced in the
    pyproject-build-system.
    
    * gnu/packages/python-xyz.scm (python-invoke) [#:phases]
    {fix-entry-points}: New phase.
    
    Change-Id: I4a9bd3bd57cfbff1bb9e7a6b4c29e781065bd586
---
 gnu/packages/python-xyz.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2f106007fc..3c936013e6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24115,7 +24115,15 @@ manipulation and interaction with formal grammars.")
               (let ((bash #$(this-package-input "bash-minimal")))
                 (substitute* "invoke/config.py"
                   (("shell = \"/bin/bash\"")
-                   (string-append "shell = \"" bash "/bin/bash\"")))))))))
+                   (string-append "shell = \"" bash "/bin/bash\""))))))
+          (add-after 'wrap 'fix-entry-points
+            ;; TODO: Remove after https://codeberg.org/guix/guix/issues/4509
+            ;; is fixed.
+            (lambda _
+              (substitute* (list (string-append #$output "/bin/.invoke-real")
+                                 (string-append #$output "/bin/.inv-real"))
+                (("from invoke.main import program.run")
+                 "from invoke.main import program")))))))
     (native-inputs
      (list python-setuptools
            python-wheel))

Reply via email to