guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python2-backports-shutil-get-terminal-size: Enable tests.


From: Marius Bakke
Subject: 01/02: gnu: python2-backports-shutil-get-terminal-size: Enable tests.
Date: Mon, 6 Mar 2017 07:56:18 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit c0446791bde9117cdf7badbd033403454cec4f19
Author: Marius Bakke <address@hidden>
Date:   Mon Mar 6 13:22:51 2017 +0100

    gnu: python2-backports-shutil-get-terminal-size: Enable tests.
    
    * gnu/packages/python.scm
    (python2-backports-shutil-get-terminal-size)[arguments]: Replace 'check' 
phase
    with custom command.
    [native-inputs]: Add PYTHON2-PYTEST.
---
 gnu/packages/python.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e94aa81..82cae87 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6129,7 +6129,14 @@ connection to each user.")
          "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2))
+     `(#:python ,python-2
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (zero? (system* "py.test" "-v")))))))
+    (native-inputs
+     `(("python2-pytest" ,python2-pytest)))
     (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size";)
     (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
     (description



reply via email to

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