guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: trim-galore: Fix test for Python.


From: guix-commits
Subject: 02/03: gnu: trim-galore: Fix test for Python.
Date: Wed, 27 Mar 2019 06:32:54 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 5f1e31094d390a85bb91e8df1efbcb2dd2e39cf4
Author: Ricardo Wurmus <address@hidden>
Date:   Wed Mar 27 11:28:38 2019 +0100

    gnu: trim-galore: Fix test for Python.
    
    * gnu/packages/bioinformatics.scm (trim-galore)[arguments]: Replace
    "configure" phase to skip ill-advised test for Python.
---
 gnu/packages/bioinformatics.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 1f29914..3f94ef5 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -10896,7 +10896,15 @@ with narrow binding events such as transcription 
factor ChIP-seq.")
      `(#:tests? #f                      ; no tests
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure)
+         (replace 'configure
+           (lambda _
+             ;; Trim Galore tries to figure out what version of Python
+             ;; cutadapt is using by looking at the shebang.  Of course that
+             ;; doesn't work, because cutadapt is wrapped in a shell script.
+             (substitute* "trim_galore"
+               (("my \\$python_return.*")
+                "my $python_return = \"Python 3.999\";\n"))
+             #t))
          (delete 'build)
          (add-after 'unpack 'hardcode-tool-references
            (lambda* (#:key inputs #:allow-other-keys)



reply via email to

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