[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/232: gnu: Add python-pytest-freezegun.
From: |
guix-commits |
Subject: |
43/232: gnu: Add python-pytest-freezegun. |
Date: |
Sun, 24 Apr 2022 23:58:30 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 437aaaba4a7294b999ccbaea80d3a967e75e766d
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")
- 66/232: gnu: Add python-xdoctest., (continued)
- 66/232: gnu: Add python-xdoctest., guix-commits, 2022/04/24
- 70/232: gnu: python-pytest-shutil: Adjust to use python-path., guix-commits, 2022/04/24
- 72/232: gnu: Add python-scikit-build., guix-commits, 2022/04/24
- 75/232: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/04/24
- 25/232: gnu: python-fonttools-with-test: Rename to python-fonttools-full., guix-commits, 2022/04/24
- 27/232: gnu: Add python-fontpens-bootstrap., guix-commits, 2022/04/24
- 38/232: gnu: Add python-jaraco-context-bootstrap., guix-commits, 2022/04/24
- 39/232: gnu: Add python-jaraco-functools-bootstrap., guix-commits, 2022/04/24
- 40/232: gnu: Add python-autocommand., guix-commits, 2022/04/24
- 35/232: gnu: Add python-ufonormalizer., guix-commits, 2022/04/24
- 43/232: gnu: Add python-pytest-freezegun.,
guix-commits <=
- 48/232: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/04/24
- 51/232: gnu: python-pytest-checkdocs: Update to 2.7.1., guix-commits, 2022/04/24
- 23/232: gnu: Add python-fontmath., guix-commits, 2022/04/24
- 28/232: gnu: Add python-booleanoperations., guix-commits, 2022/04/24
- 33/232: gnu: Add python-cu2qu., guix-commits, 2022/04/24
- 55/232: gnu: Add python-pytest-enabler., guix-commits, 2022/04/24
- 56/232: gnu: Add python-path., guix-commits, 2022/04/24
- 58/232: gnu: Add python-tempora., guix-commits, 2022/04/24
- 61/232: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/24
- 60/232: gnu: python-factory-boy: Update to 3.2.1., guix-commits, 2022/04/24