guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ea4db17a0fc3f3931a053bd792d6f1505a912d26
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Aug 14 10:40:51 2025 +0200

    gnu: python-pytest-freezegun: Switch to pyproject.
    
    * gnu/packages/check.scm (python-pytest-freezegun):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Remove them.
    [native-inputs]: Add python-setuptools, python-wheel. Remove unzip.
    [description]: Improve style.
    
    Change-Id: I30b86f2a004614c2fa5d7e8d5a679a730f5466dc
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/check.scm | 37 ++++++++++++++-----------------------
 1 file changed, 14 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index d754f6de2b..981773b171 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2907,32 +2907,23 @@ failures.")
   (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")))))))
+    (source
+     (origin
+       (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 pyproject-build-system)
     (propagated-inputs (list python-freezegun python-pytest))
-    (native-inputs (list unzip))
+    (native-inputs (list python-setuptools python-wheel))
     (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 controls (i.e., freeze) the time seen
-by the test.")
+    (description
+     "The @code{pytest-freezegun} plugin wraps tests and fixtures with
+@code{freeze_time}, which controls (i.e., freeze) the time seen by the test.")
     (license license:expat)))
 
 (define-public python-pytest-mypy

Reply via email to