guix-commits
[Top][All Lists]
Advanced

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

08/13: gnu: python-click: Fix tests.


From: Marius Bakke
Subject: 08/13: gnu: python-click: Fix tests.
Date: Tue, 13 Dec 2016 20:08:38 +0000 (UTC)

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

commit 336fce6f727ca3ade16fcd5000090946595d1a80
Author: Marius Bakke <address@hidden>
Date:   Tue Dec 13 18:51:01 2016 +0100

    gnu: python-click: Fix tests.
    
    * gnu/packages/python.scm (python-click, python2-click)[arguments]: Replace
      'check' with custom phase.
      [native-inputs]: Add python-pytest.
---
 gnu/packages/python.scm |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 28ead16..1a8a9a4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2301,7 +2301,12 @@ is used by the Requests library to verify HTTPS 
requests.")
                (substitute* "click/_unicodefun.py"
                  (("'locale'")
                   (string-append "'" glibc "/bin/locale'"))))
-             #t)))))
+             #t))
+         (replace 'check
+           (lambda _
+             (zero? (system* "make" "test")))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "http://click.pocoo.org";)
     (synopsis "Command line library for Python")
     (description



reply via email to

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