gnu: python-pyvcf: Fix bytecode compilation.

* gnu/packages/bioinformatics.scm (python-pyvcf)[arguments]: Add phase to
patch sample script.
This commit is contained in:
Marius Bakke 2021-12-04 12:12:11 +01:00
parent a2584a08be
commit b507cc49ab
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -15270,6 +15270,12 @@ (define-public python-pyvcf
(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)