From 67aa42fce341c4cbc3f200bceb37b7db3f75ba6b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 27 Nov 2025 17:22:49 +0900 Subject: [PATCH] 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 2f106007fcd6694156507a91445281e067163724..3c936013e609e953d7c1c8ecd3fd0f7703512de1 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))