[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
240/377: gnu: Add python-pytest-mock-3.
From: |
guix-commits |
Subject: |
240/377: gnu: Add python-pytest-mock-3. |
Date: |
Sun, 5 Sep 2021 10:07:57 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
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")
- 369/377: gnu: libepoxy: Propagate mesa., (continued)
- 369/377: gnu: libepoxy: Propagate mesa., guix-commits, 2021/09/05
- 370/377: gnu: tracker: Enable some features., guix-commits, 2021/09/05
- 372/377: gnu: tracker: Update to 3.1.1 and make related changes., guix-commits, 2021/09/05
- 217/377: gnu: rofi: Update to 1.7.0., guix-commits, 2021/09/05
- 221/377: gnu: Add emacs-helm-xref., guix-commits, 2021/09/05
- 226/377: bootloader: Report location of the deprecated 'target' field., guix-commits, 2021/09/05
- 228/377: build: Build (gnu packages rocm)., guix-commits, 2021/09/05
- 229/377: gnu: scrot: Update to 1.6., guix-commits, 2021/09/05
- 236/377: gnu: Add python-svgutils., guix-commits, 2021/09/05
- 237/377: gnu: Add python-dna-features-viewer., guix-commits, 2021/09/05
- 240/377: gnu: Add python-pytest-mock-3.,
guix-commits <=
- 257/377: gnu: glib: Update synopsis, description and home-page., guix-commits, 2021/09/05
- 258/377: gnu: glib-with-documentation: Make some cosmetic changes., guix-commits, 2021/09/05
- 259/377: gnu: glib-with-documentation: Fix documentation build., guix-commits, 2021/09/05
- 261/377: gnu: libsigc++: Update to 3.0.6., guix-commits, 2021/09/05
- 262/377: gnu: libsigc++: Enable documentation., guix-commits, 2021/09/05
- 269/377: gnu: gtk-doc: Update to 1.32., guix-commits, 2021/09/05
- 273/377: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/09/05
- 274/377: gnu: cairo: Change build-system., guix-commits, 2021/09/05
- 276/377: gnu: cairo: Enable some features., guix-commits, 2021/09/05
- 277/377: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/09/05