diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2016-12-19 21:13:53 +0100 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2016-12-20 05:36:55 +0100 |
| commit | 33d5b2464deffc24473ff6542f6731deaba8faba (patch) | |
| tree | 3324c19631a8a688a19d3823114bbe28db6fbdea | |
| parent | 2fb5af2c2ba9087abc4cc53652cd02c2c0cd49bb (diff) | |
gnu: cutadapt: Use ‘modify-phases’ syntax.
* gnu/packages/bioinformatics.scm (cutadapt)[arguments]: Use
‘modify-phases’.
| -rw-r--r-- | gnu/packages/bioinformatics.scm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index f363936421d..912941e1135 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm | |||
| @@ -1816,20 +1816,21 @@ preparation protocols.") | |||
| 1816 | "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v")))) | 1816 | "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v")))) |
| 1817 | (build-system python-build-system) | 1817 | (build-system python-build-system) |
| 1818 | (arguments | 1818 | (arguments |
| 1819 | ;; tests must be run after install | 1819 | `(#:phases |
| 1820 | `(#:phases (alist-cons-after | 1820 | (modify-phases %standard-phases |
| 1821 | 'install 'check | 1821 | ;; The tests must be run after installation. |
| 1822 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1822 | (delete 'check) |
| 1823 | (setenv "PYTHONPATH" | 1823 | (add-after 'install 'check |
| 1824 | (string-append | 1824 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1825 | (getenv "PYTHONPATH") | 1825 | (setenv "PYTHONPATH" |
| 1826 | ":" (assoc-ref outputs "out") | 1826 | (string-append |
| 1827 | "/lib/python" | 1827 | (getenv "PYTHONPATH") |
| 1828 | (string-take (string-take-right | 1828 | ":" (assoc-ref outputs "out") |
| 1829 | (assoc-ref inputs "python") 5) 3) | 1829 | "/lib/python" |
| 1830 | "/site-packages")) | 1830 | (string-take (string-take-right |
| 1831 | (zero? (system* "nosetests" "-P" "tests"))) | 1831 | (assoc-ref inputs "python") 5) 3) |
| 1832 | (alist-delete 'check %standard-phases)))) | 1832 | "/site-packages")) |
| 1833 | (zero? (system* "nosetests" "-P" "tests"))))))) | ||
| 1833 | (inputs | 1834 | (inputs |
| 1834 | `(("python-xopen" ,python-xopen))) | 1835 | `(("python-xopen" ,python-xopen))) |
| 1835 | (native-inputs | 1836 | (native-inputs |
