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

commit cadc8f3ef298632ebce0fc8527e8a4ad1fbcfde3
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Wed Jul 16 20:24:55 2025 +0100

    gnu: python-freezegun: Update to 1.5.3.
    
    * gnu/packages/check.scm (python-freezegun): Update to 1.5.3.
      [source] <snippet>: Remove it as
      <https://github.com/spulec/freezegun/pull/397> was merged in 2021.
      [build-system]: Use pyproject.
      [arguments] <phases>: Use default 'check.
      [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: Ia442db5e37060f972156f3af7ce748d3385cec8b
---
 gnu/packages/check.scm | 29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 27b4152303..bfd7756320 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3385,37 +3385,20 @@ directories to be excluded from testing.")
 (define-public python-freezegun
   (package
     (name "python-freezegun")
-    (version "1.2.2")
+    (version "1.5.3")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "freezegun" version))
        (sha256
-        (base32 "0ijlq32qvpm5zprfzbyzawpl9qjsknlxhryr1i0q84wl0sxd28nd"))
-       (modules '((guix build utils)))
-       (snippet
-        ;; Add an explicit case for static methods as they are callable
-        ;; in Python 3.10, breaking this conditional.
-        ;; XXX Taken from upstream pull request:
-        ;; https://github.com/spulec/freezegun/pull/397
-        '(substitute* "freezegun/api.py"
-           (("if not callable\\(attr_value\\) or \
-inspect\\.isclass\\(attr_value\\):")
-            "if (not callable(attr_value) or inspect.isclass(attr_value)\
-or isinstance(attr_value, staticmethod)):")))))
-    (build-system python-build-system)
+        (base32 "0pmwcjf0vxmars4kncb35pvrckp0j97lya5aqzbzy2m56d721inp"))))
+    (build-system pyproject-build-system)
     (native-inputs
-     (list python-pytest))
+     (list python-pytest
+           python-setuptools
+           python-wheel))
     (propagated-inputs
      (list python-dateutil))
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         ;; The tests are normally executed via `make test`, but the PyPi
-         ;; package does not include the Makefile.
-         (replace 'check
-           (lambda _
-             (invoke "pytest" "-vv"))))))
     (home-page "https://github.com/spulec/freezegun";)
     (synopsis "Test utility for mocking the datetime module")
     (description

Reply via email to