guix-commits
[Top][All Lists]
Advanced

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

22/24: gnu: python-pyvcf: Fix bytecode compilation.


From: guix-commits
Subject: 22/24: gnu: python-pyvcf: Fix bytecode compilation.
Date: Sun, 5 Dec 2021 08:16:29 -0500 (EST)

mbakke pushed a commit to branch core-updates-frozen
in repository guix.

commit b507cc49abb5492f992aff08f0931365bd4ccd4e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Dec 4 12:12:11 2021 +0100

    gnu: python-pyvcf: Fix bytecode compilation.
    
    * gnu/packages/bioinformatics.scm (python-pyvcf)[arguments]: Add phase to
    patch sample script.
---
 gnu/packages/bioinformatics.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 453b512..fb3ceb8 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15270,6 +15270,12 @@ for the analysis and visualization of raw nanopore 
signal.")
     (arguments
      `(#:phases
         (modify-phases %standard-phases
+          (add-after 'unpack 'patch-sample-script
+            (lambda _
+              ;; Add Python 3 compatibility to this sample script.
+              (substitute* "scripts/vcf_sample_filter.py"
+                (("print (.*)\n" _ arg)
+                 (string-append "print(" arg ")\n")))))
           (add-after 'install 'remove-installed-tests
             ;; Do not install test files.
             (lambda* (#:key inputs outputs #:allow-other-keys)



reply via email to

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