guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 108e19d10614aca08578b55abac8836dada08896
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jun 14 21:45:51 2026 +0100

    gnu: python-time-machine: Update to 3.2.0.
    
    * gnu/packages/python-check.scm (python-time-machine): Update to 3.2.0.
    [source]: Switch to git-fetch.
    [arguments] <tests?>: Enable.
    [native-inputs]: Remove python-wheel; add python-freezegun,
    python-pytest, python-tokenize-rt, and tzdata-for-tests.
    
    Change-Id: I2f9d760380cfdca597a77752ebd133bb792ff0b7
---
 gnu/packages/python-check.scm | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 4609f743e2..be9ac17fa1 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -5210,18 +5210,25 @@ when writing automated tests in Python.")
 (define-public python-time-machine
   (package
     (name "python-time-machine")
-    (version "2.16.0")
+    (version "3.2.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "time_machine" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/adamchainz/time-machine";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1qn7cj9lx3m7pwa8ak1106f9c54yvpa996x84gfqmyfjfg1ar6aa"))))
+        (base32 "1gn4p17b236l03l294x6mz6sv66c6qyij522nrckb8plvjy0lsji"))))
     (build-system pyproject-build-system)
-    (arguments
-     `(#:tests? #f))          ;no tests in PyPI archive
-    (propagated-inputs (list python-dateutil))
-    (native-inputs (list python-setuptools python-wheel))
+    (native-inputs
+     (list python-freezegun
+           python-pytest
+           python-setuptools
+           python-tokenize-rt
+           tzdata-for-tests))
+    (propagated-inputs
+     (list python-dateutil))
     (home-page "https://github.com/adamchainz/time-machine";)
     (synopsis "Travel through time in your tests.")
     (description "This package lets you set a different time for your tests.")

Reply via email to