~ruther/guix-local

67aa42fce341c4cbc3f200bceb37b7db3f75ba6b — Maxim Cournoyer 6 months ago 3eb585c
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
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +9 -1
@@ 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))