[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/242: gnu: Add python-pytest-freezegun.
From: |
guix-commits |
Subject: |
43/242: gnu: Add python-pytest-freezegun. |
Date: |
Thu, 12 May 2022 14:14:04 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 3ce8459aa728ce85bd1f67194539a33cec0a9d1b
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")
- 229/242: gnu: python-pudb: Update to 2022.1.1 and rename from pudb., (continued)
- 229/242: gnu: python-pudb: Update to 2022.1.1 and rename from pudb., guix-commits, 2022/05/12
- 209/242: gnu: python-flask-login: Update to 0.6.0., guix-commits, 2022/05/12
- 232/242: gnu: python-matplotlib-documentation: Fix build., guix-commits, 2022/05/12
- 239/242: gnu: Add python-sanic-routing., guix-commits, 2022/05/12
- 08/242: gnu: python-jinja2: Update to 3.1.1., guix-commits, 2022/05/12
- 15/242: gnu: Add texlive-makecmds., guix-commits, 2022/05/12
- 33/242: gnu: Add python-cu2qu., guix-commits, 2022/05/12
- 49/242: gnu: python-mypy: Update to 0.942 and fix search path., guix-commits, 2022/05/12
- 52/242: gnu: Add python-jaraco-classes., guix-commits, 2022/05/12
- 51/242: gnu: python-pytest-checkdocs: Update to 2.7.1., guix-commits, 2022/05/12
- 43/242: gnu: Add python-pytest-freezegun.,
guix-commits <=
- 56/242: gnu: Add python-path., guix-commits, 2022/05/12
- 53/242: gnu: Add python-jaraco-context., guix-commits, 2022/05/12
- 55/242: gnu: Add python-pytest-enabler., guix-commits, 2022/05/12
- 72/242: gnu: Add python-scikit-build., guix-commits, 2022/05/12
- 98/242: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/05/12
- 87/242: gnu: Add font-sil-ezra., guix-commits, 2022/05/12
- 105/242: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/05/12
- 89/242: gnu: Add font-gfs-ambrosia., guix-commits, 2022/05/12
- 93/242: gnu: python-black: Update to 22.3.0., guix-commits, 2022/05/12
- 90/242: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/05/12