htgoebel pushed a commit to branch wip-python-build-system
in repository guix.

commit e8adfe19aa42d7b09a2189ed66193ab3fa85b896
Author: Hartmut Goebel <h.goe...@crazy-compilers.com>
Date:   Sun Oct 2 23:15:14 2016 +0200

    gnu: python-pytest-cov: Use upstream options for testing.
    
    * gnu/packages/python.scm (python-pytest-cov): Replace phase "check"
      by one passing the options found in upstream's tox.ini-file
      to "python setup.py check".
---
 gnu/packages/python.scm |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 67529d6..f228141 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1588,6 +1588,16 @@ and many external plugins.")
          (base32
           "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+          (lambda _
+            ;; options taken from tox.ini
+            ;; TODO: make "--restructuredtext" tests pass. They currently fail
+            ;; with "Duplicate implicit target name"
+            (zero? (system* "python" "./setup.py" "check"
+                            "--strict" "--metadata")))))))
     (inputs
      `(("python-coverage" ,python-coverage)
        ("python-pytest" ,python-pytest)))

Reply via email to