guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python-hy: Fix test suite.


From: Marius Bakke
Subject: 01/01: gnu: python-hy: Fix test suite.
Date: Thu, 15 Dec 2016 18:49:14 +0000 (UTC)

mbakke pushed a commit to branch python-tests
in repository guix.

commit 15c37077bc3801317c9e40ee3552f6aac67baaa7
Author: Marius Bakke <address@hidden>
Date:   Thu Dec 15 19:47:47 2016 +0100

    gnu: python-hy: Fix test suite.
    
    * gnu/packages/python.scm (python-hy, python2-hy)[arguments]: Replace 
'check'
    phase with custom command.
    [native-inputs]: Add python-coverage and python-nose.
---
 gnu/packages/python.scm |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d438e5c..c45afbc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8273,6 +8273,17 @@ with a new public API, and RPython support.")
                (base32
                 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             ;; Tests require write access to HOME.
+             (setenv "HOME" "/tmp")
+             (zero? (system* "nosetests")))))))
+    (native-inputs
+     `(("python-coverage" ,python-coverage)
+       ("python-nose" ,python-nose)))
     (propagated-inputs
      `(("python-astor" ,python-astor)
        ("python-clint" ,python-clint)



reply via email to

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