aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-12-04 12:12:11 +0100
committerMarius Bakke <marius@gnu.org>2021-12-05 14:02:10 +0100
commitb507cc49abb5492f992aff08f0931365bd4ccd4e (patch)
treec83193f91ce0884d4a880ed2004888704f3ee19c
parenta2584a08bec4c4c448522ff3d93d99553c4667f6 (diff)
downloadguix-b507cc49abb5492f992aff08f0931365bd4ccd4e.tar.gz
guix-b507cc49abb5492f992aff08f0931365bd4ccd4e.zip
gnu: python-pyvcf: Fix bytecode compilation.
* gnu/packages/bioinformatics.scm (python-pyvcf)[arguments]: Add phase to patch sample script.
-rw-r--r--gnu/packages/bioinformatics.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 453b512aa3..fb3ceb8c83 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)