summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-08-21 07:33:30 +0200
committerMarius Bakke <mbakke@fastmail.com>2018-08-21 17:24:30 +0200
commit88166588a0a4bea41e505ba908af391b855de5c3 (patch)
treed61448846ee8b16034b1d2305b6d5171487bb910
parentb3a21b2cf92bfaa95e27072fb4bae57c39ff12eb (diff)
downloadguix-88166588a0a4bea41e505ba908af391b855de5c3.tar.gz
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?.
-rw-r--r--gnu/packages/python.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 44488e700a..14bbe4a3c7 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")