[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: |
Thu, 2 Sep 2021 17:55:44 -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")
- 237/377: gnu: Add python-dna-features-viewer., (continued)
- 237/377: gnu: Add python-dna-features-viewer., guix-commits, 2021/09/02
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime., guix-commits, 2021/09/02
- 230/377: build-system: chicken: Add 'egg-uri' procedure., guix-commits, 2021/09/02
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/02
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/02
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling., guix-commits, 2021/09/02
- 215/377: services: Remove i486 qemu target., guix-commits, 2021/09/02
- 248/377: build/jami-service: Fix range ends in account-fingerprint-rx., guix-commits, 2021/09/02
- 242/377: gnu: Add python-jupyter-server., guix-commits, 2021/09/02
- 246/377: gnu: Add python-voila., guix-commits, 2021/09/02
- 240/377: gnu: Add python-pytest-mock-3.,
guix-commits <=
- 241/377: gnu: Add python-anyio., guix-commits, 2021/09/02
- 259/377: gnu: glib-with-documentation: Fix documentation build., guix-commits, 2021/09/02
- 255/377: gnu: glib: Update to 2.68.0., guix-commits, 2021/09/02
- 251/377: gnu: Add go-github-com-anaseto-gruid., guix-commits, 2021/09/02
- 266/377: gnu: glibmm-2.64: Update to 2.64.5., guix-commits, 2021/09/02
- 257/377: gnu: glib: Update synopsis, description and home-page., guix-commits, 2021/09/02
- 250/377: gnu: Add go-github-com-gdamore-tcell-v2., guix-commits, 2021/09/02
- 256/377: gnu: glib: Enable man pages., guix-commits, 2021/09/02
- 271/377: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/09/02
- 274/377: gnu: cairo: Change build-system., guix-commits, 2021/09/02