aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-04-05 13:36:25 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-05-12 12:45:29 -0400
commit3ce8459aa728ce85bd1f67194539a33cec0a9d1b (patch)
tree39f9ddae931885682d06266dace385902f74208f /gnu/packages
parent586ef9b9cfe0286712c710752e2904fa82be9365 (diff)
downloadguix-3ce8459aa728ce85bd1f67194539a33cec0a9d1b.tar.gz
guix-3ce8459aa728ce85bd1f67194539a33cec0a9d1b.zip
gnu: Add python-pytest-freezegun.
* gnu/packages/check.scm (python-pytest-freezegun): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/check.scm32
1 files changed, 32 insertions, 0 deletions
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")
title='2021-09-07 15:59:34 +0200'>2021-09-07import: elpa: Support NonGNU ELPA....Xinglu Chen 2021-09-02gnu: version-control: Add gitile service....Julien Lepiller 2021-09-02gnu: gitolite: Add unsafe-pattern configuration option....Julien Lepiller 2021-08-31doc: Correct name of Minetest importer....Maxime Devos 2021-08-29Migrate to the new 'targets' field of bootloader-configuration....Maxim Cournoyer 2021-08-29gnu: bootloader: Support multiple targets....Maxim Cournoyer 2021-08-21doc: Work around po4a doc generation hangup....Sergei Trofimovich 2021-08-21guix: opam: More flexibility in the importer....Alice BRENON 2021-08-20guix: dune-build-system: Add a profile parameter....pukkamustard 2021-08-20guix: Add ContentDB importer....Maxime Devos 2021-08-20build-system: Add 'minetest-mod-build-system'....Maxime Devos 2021-08-17services: slim: Add pam-gnupg support....Oleg Pykhalov 2021-08-15Update copyright/name notices for Christine Lemmer-Webber....Christopher Lemmer Webber 2021-08-15doc: Fix typo....Ricardo Wurmus 2021-08-13services: cuirass: Reverse the no-publish logic....Mathieu Othacehe 2021-08-12services: cuirass: Add a substitute-urls argument....Mathieu Othacehe 2021-08-12services: cuirass: Add a no-publish argument....Mathieu Othacehe 2021-08-08doc: Add a tip to better name mcron jobs....Maxim Cournoyer 2021-08-04nls: Update translations....Julien Lepiller 2021-08-03doc: Fix typo....Maxim Cournoyer 2021-08-02Reinstate "services: Add a service for Jami."...Maxim Cournoyer 2021-08-02Revert "services: Add a service for Jami."...Maxim Cournoyer 2021-08-02services: Add a service for Jami....Maxim Cournoyer 2021-07-29services: Migrate to <setuid-program>....Brice Waegeneire