3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: cutadapt: Use ‘modify-phases’ syntax.

* gnu/packages/bioinformatics.scm (cutadapt)[arguments]: Use
‘modify-phases’.
This commit is contained in:
Tobias Geerinckx-Rice 2016-12-19 21:13:53 +01:00
parent 2fb5af2c2b
commit 33d5b2464d
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -1816,20 +1816,21 @@ preparation protocols.")
"19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v"))))
(build-system python-build-system)
(arguments
;; tests must be run after install
`(#:phases (alist-cons-after
'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "PYTHONPATH"
(string-append
(getenv "PYTHONPATH")
":" (assoc-ref outputs "out")
"/lib/python"
(string-take (string-take-right
(assoc-ref inputs "python") 5) 3)
"/site-packages"))
(zero? (system* "nosetests" "-P" "tests")))
(alist-delete 'check %standard-phases))))
`(#:phases
(modify-phases %standard-phases
;; The tests must be run after installation.
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "PYTHONPATH"
(string-append
(getenv "PYTHONPATH")
":" (assoc-ref outputs "out")
"/lib/python"
(string-take (string-take-right
(assoc-ref inputs "python") 5) 3)
"/site-packages"))
(zero? (system* "nosetests" "-P" "tests")))))))
(inputs
`(("python-xopen" ,python-xopen)))
(native-inputs