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

commit c07b20f9737324e78b20b39c7618f93ba09cf5bc
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Sep 20 20:16:20 2025 +0200

    gnu: python-fakeredis: Update to 2.31.2.
    
    * gnu/packages/databases.scm (python-fakeredis): Update to 2.31.2.
    [arguments]<#:test-flags>: Ignore failing tests.
    <#:phases>: Remove phase 'poetry-compatibility and
    'relax-requirements.
    [native-inputs]: Replace python-poetry-core by python-hatchling.
    
    Change-Id: I04844f8ec74467a84afb7ade71e9f57edc614bf1
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/databases.scm | 48 +++++++++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 031f9d5c0e..951ae8826d 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4858,39 +4858,43 @@ parsing code in hiredis.  It primarily speeds up 
parsing of multi bulk replies."
 (define-public python-fakeredis
   (package
     (name "python-fakeredis")
-    (version "2.26.1")
-    (source (origin
-              (method git-fetch)        ;for tests
-              (uri (git-reference
-                    (url "https://github.com/cunla/fakeredis-py";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "10f9qwpc9vlcd2411c398n9kwjsk399vk1pjd9dbczlhvsn9s5bq"))))
+    (version "2.31.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/cunla/fakeredis-py";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1ccywkm42drm2l1l2a1r6v5y5sycsbfbdlgvrrlr5a9ns9s1sb7s"))))
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:test-flags '(list "-m" "not slow")
+      #:test-flags
+      #~(list "-m" "not slow"
+              ;; XXX: Requires additional valkey package,
+              ;; but not the one in this module.
+              "--ignore-glob=test/test_valkey/*"
+              ;; XXX: Unclear why these tests fail. Wrong Redis version?
+              "-k" (string-join
+                    (list "not test_acl_cat"
+                          "test_acl_log_auth_exist"
+                          "test_acl_log_invalid_key"
+                          "test_acl_log_invalid_channel"
+                          "test_client_list"
+                          "test_client_info"
+                          "test_client_id")
+                    " and not "))
       #:phases
       #~(modify-phases %standard-phases
-          (add-after 'unpack 'poetry-compatibility
-            (lambda _
-              ;; Our version of poetry does not understand "to".
-              (substitute* "pyproject.toml"
-                ((", to = \"fakeredis\" ") ""))))
-          (add-after 'unpack 'relax-requirements
-            (lambda _
-              (substitute* "pyproject.toml"
-                (("sortedcontainers = \"\\^2\\.4\"")
-                 "sortedcontainers = \"^2.1\""))))
           ;; Tests require a running Redis server.
           (add-before 'check 'start-redis
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?
                 (invoke "redis-server" "--daemonize" "yes"
                         "--port" "6390")))))))
-    (native-inputs (list python-poetry-core python-pytest
+    (native-inputs (list python-hatchling python-pytest
                          python-pytest-asyncio python-pytest-mock
                          redis))
     (propagated-inputs

Reply via email to