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
This commit is contained in:
Maxim Cournoyer 2025-11-27 17:22:49 +09:00
parent 3eb585c899
commit 67aa42fce3
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -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))