mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-28 03:45:07 -06:00
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:
parent
3eb585c899
commit
67aa42fce3
1 changed files with 9 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue