guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: beets: Run tests with python-nose.


From: Leo Famulari
Subject: 01/01: gnu: beets: Run tests with python-nose.
Date: Sun, 27 Mar 2016 22:24:58 +0000

lfam pushed a commit to branch master
in repository guix.

commit 36c2c8c826336e2476d7cf218f457b39a27415b0
Author: Leo Famulari <address@hidden>
Date:   Sat Mar 26 17:53:59 2016 -0400

    gnu: beets: Run tests with python-nose.
    
    * gnu/packages/music.scm (nose)[native-inputs]: Add python-nose.
    [arguments]: Replace 'check' and use python-nose.
---
 gnu/packages/music.scm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 89f49c6..48d6214 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1274,13 +1274,16 @@ websites such as Libre.fm.")
        #:phases
        (modify-phases %standard-phases
          (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
      `(("python2-beautifulsoup4" ,python2-beautifulsoup4)
        ("python2-flask" ,python2-flask)
        ("python2-setuptools" ,python2-setuptools)
        ("python2-mock" ,python2-mock)
        ("python2-mpd2" ,python2-mpd2)
+       ("python2-nose" ,python2-nose)
        ("python2-pathlib" ,python2-pathlib)
        ("python2-pyxdg" ,python2-pyxdg)
        ("python2-pyechonest" ,python2-pyechonest)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]