guix-commits
[Top][All Lists]
Advanced

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

42/51: gnu: python-pytest-runner: Update to 5.2.


From: guix-commits
Subject: 42/51: gnu: python-pytest-runner: Update to 5.2.
Date: Fri, 24 Jan 2020 14:48:23 -0500 (EST)

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

commit 861a265959ca931bab38fe6c1266de8849016820
Author: Marius Bakke <address@hidden>
AuthorDate: Fri Jan 24 00:13:10 2020 +0100

    gnu: python-pytest-runner: Update to 5.2.
    
    * gnu/packages/check.scm (python-pytest-runner): Update to 5.2.
    [arguments]: New field.
    [native-inputs]: Remove PYTHON-PYTEST-BOOTSTRAP.
---
 gnu/packages/check.scm | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index b58349f..19147e1 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -920,18 +920,28 @@ supports coverage of subprocesses.")
 (define-public python-pytest-runner
   (package
     (name "python-pytest-runner")
-    (version "4.4")
+    (version "5.2")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pytest-runner" version))
        (sha256
         (base32
-         "1x0d9n40lsiphblbs61rdc0d5r31f6vh0vcahqdv0mffakbnrb80"))))
+         "0awll1bva5zy8cspsxcpv7pjcrdf5c6pf56nqn4f74vvmlzfgiwn"))))
     (build-system python-build-system)
+    (arguments
+     '(;; FIXME: The test suite requires 'python-flake8' and 'python-black',
+       ;; but that introduces a circular dependency.
+       #:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (if tests?
+                          (invoke "pytest" "-vv")
+                          (format #t "test suite not run~%"))
+                      #t)))))
     (native-inputs
-     `(("python-pytest" ,python-pytest-bootstrap)
-       ("python-setuptools-scm" ,python-setuptools-scm)))
+     `(("python-setuptools-scm" ,python-setuptools-scm)))
     (home-page "https://github.com/pytest-dev/pytest-runner";)
     (synopsis "Invoke py.test as a distutils command")
     (description



reply via email to

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