guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python-invoke: Patch reference to bash.


From: guix-commits
Subject: 01/02: gnu: python-invoke: Patch reference to bash.
Date: Fri, 12 Feb 2021 07:14:06 -0500 (EST)

iyzsong pushed a commit to branch master
in repository guix.

commit adf638065722b02ae672efa904aa34427f7c7238
Author: Tanguy Le Carrour <tanguy@bioneland.org>
AuthorDate: Tue Jan 19 19:25:41 2021 +0100

    gnu: python-invoke: Patch reference to bash.
    
    * gnu/packages/python-xyz.scm (python-invoke)[arguments]: Patch
    the reference to 'bash' in the source.
    [inputs]: Add bash.
    
    Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
---
 gnu/packages/python-xyz.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 783812e..3aa7516 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15267,7 +15267,19 @@ projects.")
     (build-system python-build-system)
     (arguments
      ;; XXX: Requires many dependencies that are not yet in Guix.
-     `(#:tests? #f))
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-bash-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((bash (assoc-ref inputs "bash")))
+               (substitute* "invoke/config.py"
+                 (("shell = \"/bin/bash\"")
+                  (string-append "shell = \"" bash "/bin/bash\""))
+                 )
+               #t))))))
+    (inputs
+     `(("bash" ,bash-minimal)))
     (synopsis "Pythonic task execution")
     (description
      "Invoke is a Python task execution tool and library, drawing inspiration



reply via email to

[Prev in Thread] Current Thread [Next in Thread]