gnu: beets: Run tests with python-nose.

* gnu/packages/music.scm (nose)[native-inputs]: Add python-nose.
[arguments]: Replace 'check' and use python-nose.
master
Leo Famulari 2016-03-26 17:53:59 -04:00
parent 13bc8d5e4f
commit 36c2c8c826
1 changed files with 4 additions and 1 deletions

View File

@ -1274,13 +1274,16 @@ websites such as Libre.fm.")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'set-HOME (add-after 'unpack 'set-HOME
(lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))))) (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
(replace 'check
(lambda _ (zero? (system* "nosetests" "-v")))))))
(native-inputs (native-inputs
`(("python2-beautifulsoup4" ,python2-beautifulsoup4) `(("python2-beautifulsoup4" ,python2-beautifulsoup4)
("python2-flask" ,python2-flask) ("python2-flask" ,python2-flask)
("python2-setuptools" ,python2-setuptools) ("python2-setuptools" ,python2-setuptools)
("python2-mock" ,python2-mock) ("python2-mock" ,python2-mock)
("python2-mpd2" ,python2-mpd2) ("python2-mpd2" ,python2-mpd2)
("python2-nose" ,python2-nose)
("python2-pathlib" ,python2-pathlib) ("python2-pathlib" ,python2-pathlib)
("python2-pyxdg" ,python2-pyxdg) ("python2-pyxdg" ,python2-pyxdg)
("python2-pyechonest" ,python2-pyechonest) ("python2-pyechonest" ,python2-pyechonest)