guix-commits
[Top][All Lists]
Advanced

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

01/06: gnu: Remove python-pytest-mock-3.


From: guix-commits
Subject: 01/06: gnu: Remove python-pytest-mock-3.
Date: Tue, 31 Aug 2021 17:12:47 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 73995969b133e50c04ad8f1e8a1428aef0eadb43
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Aug 31 21:36:47 2021 +0200

    gnu: Remove python-pytest-mock-3.
    
    * gnu/packages/check.scm (python-pytest-mock-3): Remove variable.
    * gnu/packages/python-xyz.scm (python-anyio)[native-inputs]: Replace
    python-pytest-mock-3 with python-pytest-mock.
---
 gnu/packages/check.scm      | 27 ---------------------------
 gnu/packages/python-xyz.scm |  2 +-
 2 files changed, 1 insertion(+), 28 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 4e1b8e8..b49f9de 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1307,33 +1307,6 @@ same arguments.")
        `(("python2-mock" ,python2-mock)
          ,@(package-propagated-inputs base))))))
 
-(define-public python-pytest-mock-3
-  (package
-    (inherit python-pytest-mock)
-    (version "3.6.1")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "pytest-mock" version))
-        (sha256
-         (base32
-          "0qhfmd05z3g88bnwq6644jl6p5wy01i4yy7h8883z9jjih2pl8a0"))))
-    (properties '())
-    (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
-             (when tests?
-               ;; Make the installed plugin discoverable by Pytest.
-               (add-installed-pythonpath inputs outputs)
-               (invoke "pytest" "-vv"
-                       ;; TODO: these fail for unclear reasons
-                       "-k"
-                       (string-append
-                        "not test_standalone_mock"
-                        " and not test_detailed_introspection_async"))))))))))
-
 (define-public python-pytest-xdist
   (package
     (name "python-pytest-xdist")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 577353e..07c9127 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23107,7 +23107,7 @@ standard error channel (stderr) in your program.")
        ("python-iniconfig" ,python-iniconfig)
        ("python-mock" ,python-mock)
        ("python-pytest" ,python-pytest-6)
-       ("python-pytest-mock" ,python-pytest-mock-3)
+       ("python-pytest-mock" ,python-pytest-mock)
        ("python-pytest-trio" ,python-pytest-trio)
        ("python-setuptools-scm" ,python-setuptools-scm)
        ("python-trustme" ,python-trustme)



reply via email to

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