guix-commits
[Top][All Lists]
Advanced

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

04/04: gnu: python-pyjwt: Remove dependency on old version of 'pytest-ru


From: guix-commits
Subject: 04/04: gnu: python-pyjwt: Remove dependency on old version of 'pytest-runner'.
Date: Wed, 8 Apr 2020 11:49:18 -0400 (EDT)

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

commit 155aaca7febe58b59a55c5d4cd5bc5abcbe66d39
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Apr 8 14:33:43 2020 +0200

    gnu: python-pyjwt: Remove dependency on old version of 'pytest-runner'.
    
    * gnu/packages/python-xyz.scm (python-pyjwt)[arguments]: New field.
    [native-inputs]: Remove PYTHON-PYTEST-RUNNER.
---
 gnu/packages/python-xyz.scm | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9703301..5e56a2b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2659,10 +2659,20 @@ memory usage and transliteration quality.")
                      (find-files "." "\\.pyc$"))
            #t))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      ;; Mimic upstream commit 3a20892442b34c7 to get
+                      ;; rid of dependency on pytest-runner < 5.0.
+                      ;; Remove substitution for PyJWT > 1.7.1.
+                      (substitute* "setup.py"
+                        ((".*pytest-runner.*")
+                         ""))
+                      (invoke "pytest" "-vv"))))))
     (native-inputs
      `(("python-pytest" ,python-pytest)
-       ("python-pytest-cov" ,python-pytest-cov)
-       ("python-pytest-runner" ,python-pytest-runner)))
+       ("python-pytest-cov" ,python-pytest-cov)))
     (home-page "https://github.com/progrium/pyjwt";)
     (synopsis "JSON Web Token implementation in Python")
     (description



reply via email to

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