[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/204: gnu: Add python-pytest-freezegun.
From: |
guix-commits |
Subject: |
43/204: gnu: Add python-pytest-freezegun. |
Date: |
Wed, 20 Apr 2022 02:03:16 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 22f6f03071c6744102df6b00cfb4047a39318712
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 5 13:36:25 2022 -0400
gnu: Add python-pytest-freezegun.
* gnu/packages/check.scm (python-pytest-freezegun): New variable.
---
gnu/packages/check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 75b42b945a..1db4457dde 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2200,6 +2200,38 @@ style test suites, summarizing their results, and
providing indication of
failures.")
(license license:ncsa)))
+(define-public python-pytest-freezegun
+ (package
+ (name "python-pytest-freezegun")
+ (version "0.4.2")
+ (source (origin
+ ;; The test suite is not included in the PyPI archive.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ktosiek/pytest-freezegun")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (propagated-inputs (list python-freezegun python-pytest))
+ (native-inputs (list unzip))
+ (home-page "https://github.com/ktosiek/pytest-freezegun")
+ (synopsis "Pytest plugin to freeze time in test fixtures")
+ (description "The @code{pytest-freezegun} plugin wraps tests and fixtures
+with @code{freeze_time}, which allows to control (i.e., freeze) the time seen
+by the test.")
+ (license license:expat)))
+
(define-public python-pytest-mypy
(package
(name "python-pytest-mypy")
- 59/204: gnu: Add python-pytest-perf., (continued)
- 59/204: gnu: Add python-pytest-perf., guix-commits, 2022/04/20
- 65/204: gnu: Add python-ordered-set., guix-commits, 2022/04/20
- 91/204: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/04/20
- 94/204: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/20
- 95/204: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/20
- 98/204: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/20
- 103/204: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/20
- 105/204: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/20
- 112/204: gnu: Add texlive-lm-math., guix-commits, 2022/04/20
- 144/204: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/20
- 43/204: gnu: Add python-pytest-freezegun.,
guix-commits <=
- 45/204: gnu: Add python-path-bootstrap., guix-commits, 2022/04/20
- 46/204: gnu: Add python-pip-run-bootstrap., guix-commits, 2022/04/20
- 55/204: gnu: Add python-pytest-enabler., guix-commits, 2022/04/20
- 57/204: gnu: Add python-pip-run., guix-commits, 2022/04/20
- 61/204: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/20
- 50/204: gnu: Add python-types-docutils., guix-commits, 2022/04/20
- 66/204: gnu: Add python-xdoctest., guix-commits, 2022/04/20
- 69/204: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/20
- 78/204: gnu: Add python-afdko., guix-commits, 2022/04/20
- 81/204: gnu: Add python-skia-pathops., guix-commits, 2022/04/20