guix-commits
[Top][All Lists]
Advanced

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

34/43: gnu: python-babel: Run the tests.


From: Marius Bakke
Subject: 34/43: gnu: python-babel: Run the tests.
Date: Tue, 21 Aug 2018 11:25:59 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 88166588a0a4bea41e505ba908af391b855de5c3
Author: Marius Bakke <address@hidden>
Date:   Tue Aug 21 07:33:30 2018 +0200

    gnu: python-babel: Run the tests.
    
    * gnu/packages/python.scm (python-babel)[native-inputs]: Add 
PYTHON-FREEZEGUN
    and PYTHON-PYTEST.
    [arguments]: Replace 'check' phase.  Remove #:tests?.
---
 gnu/packages/python.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 44488e7..14bbe4a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -626,9 +626,15 @@ by @code{binstar}, @code{binstar-build} and 
@code{chalmers}.")
        (base32
         "08rxmbx2s4irp0w0gmn498vns5xy0fagm0fg33xa772jiks51flc"))))
     (build-system python-build-system)
+    (native-inputs
+     `(("python-freezegun" ,python-freezegun)
+       ("python-pytest" ,python-pytest)))
     (propagated-inputs
      `(("python-pytz" ,python-pytz)))
-    (arguments `(#:tests? #f)) ; no test target
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _ (invoke "pytest" "-vv"))))))
     (home-page "http://babel.pocoo.org/";)
     (synopsis
      "Tools for internationalizing Python applications")



reply via email to

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