guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: thefuck: Correct inputs and disable tests.


From: Marius Bakke
Subject: 01/02: gnu: thefuck: Correct inputs and disable tests.
Date: Mon, 19 Dec 2016 12:29:42 +0000 (UTC)

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

commit 1c1b67a3c91cd46241dee9c556d326e11b1d9ce2
Author: Marius Bakke <address@hidden>
Date:   Mon Dec 19 01:05:52 2016 +0100

    gnu: thefuck: Correct inputs and disable tests.
    
    * gnu/packages/admin.scm (thefuck)[arguments]: Set #:tests? #f.
    [inputs]: Move everything to ...
    [propagated-inputs]: ... here. Remove duplicate [inputs] and 
python-setuptools.
    [native-inputs]: Add python-pytest, python-pytest-mock and python-mock.
---
 gnu/packages/admin.scm |   21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 69c04dc..6e913d2 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1697,15 +1697,26 @@ throughput (in the same interval).")
                (base32
                 "04q2cn8c83f6z6wn1scla1ilrpi5ssjc64987hvmwfvwvb82bvkp"))))
     (build-system python-build-system)
-    (inputs
+    (arguments
+     '(#:tests? #f))
+       ;; FIXME: 10 test failures. Some require newer pytest (> 2.9.2).
+       ;; Others need more work. Un-comment the below to run the tests.
+       ;; #:phases
+       ;; (modify-phases %standard-phases
+       ;;   (replace 'check
+       ;;     (lambda _
+       ;;       ;; Some tests need write access to $HOME.
+       ;;       (setenv "HOME" "/tmp")
+       ;;       (zero? (system* "py.test" "-v")))))))
+    (propagated-inputs
      `(("python-colorama" ,python-colorama)
        ("python-decorator" ,python-decorator)
        ("python-psutil" ,python-psutil)
        ("python-six" ,python-six)))
-    (inputs
-     ;; Requires setuptools >= 17.1 due to some features used, while our
-     ;; python currently only includes 12.0. TODO: Remove this input.
-     `(("python-setuptools" ,python-setuptools)))
+    (native-inputs
+     `(("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-mock" ,python-pytest-mock)))
     (home-page "https://github.com/nvbn/thefuck";)
     (synopsis "Correct mistyped console command")
     (description



reply via email to

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