summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-12-16 16:43:43 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:37:20 +0100
commitbee74a60b0080ff51fe579359e0d5eedb02212ac (patch)
tree29b6d68120778f90dc9a3fbdff61d09771682b98 /gnu/packages/python-check.scm
parent599704cef319ba362c6a2c73fec63f7ef74628ea (diff)
gnu: Add python-time-machine.
* gnu/packages/python-check.scm (python-time-machine): New variable. Change-Id: I5fce1caf7e659ae349de765a31cc78195d16d703
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 047edfd5268..60345ff3505 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -56,6 +56,7 @@
56 #:use-module (gnu packages python-web) 56 #:use-module (gnu packages python-web)
57 #:use-module (gnu packages python-xyz) 57 #:use-module (gnu packages python-xyz)
58 #:use-module (gnu packages qt) 58 #:use-module (gnu packages qt)
59 #:use-module (gnu packages time)
59 #:use-module (gnu packages version-control) 60 #:use-module (gnu packages version-control)
60 #:use-module (gnu packages web) 61 #:use-module (gnu packages web)
61 #:use-module (gnu packages xml) 62 #:use-module (gnu packages xml)
@@ -2939,6 +2940,24 @@ Python environments, similar to @code{tox}. Unlike tox, Nox uses a standard
2939Python file for configuration.") 2940Python file for configuration.")
2940 (license license:asl2.0))) 2941 (license license:asl2.0)))
2941 2942
2943(define-public python-time-machine
2944 (package
2945 (name "python-time-machine")
2946 (version "2.16.0")
2947 (source
2948 (origin
2949 (method url-fetch)
2950 (uri (pypi-uri "time_machine" version))
2951 (sha256
2952 (base32 "1qn7cj9lx3m7pwa8ak1106f9c54yvpa996x84gfqmyfjfg1ar6aa"))))
2953 (build-system pyproject-build-system)
2954 (propagated-inputs (list python-dateutil))
2955 (native-inputs (list python-setuptools python-wheel))
2956 (home-page "https://github.com/adamchainz/time-machine")
2957 (synopsis "Travel through time in your tests.")
2958 (description "This package lets you set a different time for your tests.")
2959 (license license:expat)))
2960
2942(define-public python-tox 2961(define-public python-tox
2943 (package 2962 (package
2944 (name "python-tox") 2963 (name "python-tox")