[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: Add python-pytest-mock-3.
From: |
guix-commits |
Subject: |
06/13: gnu: Add python-pytest-mock-3. |
Date: |
Mon, 30 Aug 2021 12:50:50 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 76b5a14ad5677794b93fbf7014821258620f5258
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Aug 27 17:57:03 2021 +0200
gnu: Add python-pytest-mock-3.
* gnu/packages/check.scm (python-pytest-mock-3): New variable.
---
gnu/packages/check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index b49f9de..4e1b8e8 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1307,6 +1307,33 @@ 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")
- branch master updated (b8926ca -> 7712154), guix-commits, 2021/08/30
- 01/13: gnu: Add python-pybbi., guix-commits, 2021/08/30
- 02/13: gnu: Add python-svgutils., guix-commits, 2021/08/30
- 04/13: gnu: Add python-pytest-console-scripts., guix-commits, 2021/08/30
- 06/13: gnu: Add python-pytest-mock-3.,
guix-commits <=
- 08/13: gnu: Add python-jupyter-server., guix-commits, 2021/08/30
- 07/13: gnu: Add python-anyio., guix-commits, 2021/08/30
- 05/13: gnu: Add python-pytest-tornasync., guix-commits, 2021/08/30
- 12/13: gnu: Add python-voila., guix-commits, 2021/08/30
- 03/13: gnu: Add python-dna-features-viewer., guix-commits, 2021/08/30
- 09/13: gnu: python-scanpy: Update to 1.8.1., guix-commits, 2021/08/30
- 10/13: gnu: python-anndata: Fetch sources from git., guix-commits, 2021/08/30
- 11/13: gnu: python-scikit-learn: Update to 0.24.2., guix-commits, 2021/08/30
- 13/13: gnu: Add python-coolbox., guix-commits, 2021/08/30