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

commit 75c49298eab74b91db9d6bdbd4dd904e6c60de3e
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Jan 18 19:37:09 2026 +0100

    gnu: python-redis: Update to 7.1.0.
    
    * gnu/packages/databases.scm (python-redis): Update to 7.1.0.
    [arguments]<#:test-flags>: Refresh them.
    <#:phases>: Rename and refresh phase 'avoid-pytest-cov to
    'relax-coverage-requirements.
    [native-inputs]: Add python-hatchling, python-mock,
    python-pytest-timeout.  Replace python-pytest-asyncio-0.23 by
    python-pytest-asyncio.  Remove python-setuptools.
    
    Change-Id: I202a4b4e413300dc2a9f25b75793367e4adcd8a5
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/databases.scm | 84 ++++++++++++++++++++--------------------------
 1 file changed, 37 insertions(+), 47 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 202dc5499c..929f9af208 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -5024,54 +5024,45 @@ reasonable substitute.")
 (define-public python-redis
   (package
     (name "python-redis")
-    (version "5.2.0")
-    (source (origin
-              ;; The PyPI archive lacks some test resources such as the TLS
-              ;; certificates under docker/stunnel/keys.
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/redis/redis-py";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0f38s704gpm8ra6vdrqhicfq7m77in60kbgcmhvmviq9qj6v3505"))))
+    (version "7.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/redis/redis-py";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0c2794r5xcqdqaqr1vr3ibi6lb5rvxg002ichjb42xhlbpd4860j"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags
-      #~(list "-m"
-              ;; These tests are disabled in the official CI run (see:
-              ;; https://raw.githubusercontent.com/redis/redis-py/master/
-              ;; .github/workflows/install_and_test.sh).
-              (string-append "not onlycluster "
-                             "and not redismod "
-                             "and not ssl "
-                             "and not graph")
-              "-k" (string-join
-                    (list
-                     ;; The autoclaim test fails with "AssertionError: assert
-                     ;; [b'0-0', [], []] == [b'0-0', []]".
-                     "not test_xautoclaim "
-                     ;; These tests cause the following error: "Error 111
-                     ;; connecting to localhost:6380. Connection refused."
-                     ;; (see: https://github.com/redis/redis-py/issues/2109).
-                     "test_sync"
-                     "test_psync"
-                     ;; Same with: "Error 111 connecting to
-                     ;; localhost:6479. Connection refused."
-                     "test_tfcall"
-                     "test_tfunction_load_delete"
-                     "test_tfunction_list"
-                     ;; AssertionError: assert 3 == 2
-                     "test_acl_list"
-                     ;; XXX: This test occasionally fails on i686-linux
-                     #$@(if (target-x86-32?)
-                            '("test_geopos")
-                            '()))
-                    " and not "))
+      #~(list
+         ;; These tests are disabled in the official CI run (see:
+         ;; https://raw.githubusercontent.com/redis/redis-py/master/
+         ;; .github/workflows/install_and_test.sh).
+         "-m" "not onlycluster and not redismod and not ssl"
+         "--ignore=tests/test_scenario"
+         "--ignore=tests/test_asyncio/test_scenario"
+         ;; XXX: Those tests require the unpackaged "pybreaker".
+         "--ignore=tests/test_multidb"
+         "--ignore=tests/test_asyncio/test_multidb"
+         ;; XXX: Those tests require the unpackaged "redis_entraid".
+         "--ignore=tests/test_credentials.py"
+         "--ignore=tests/test_asyncio/test_credentials.py"
+         ;; XXX: Those test fail with ConnectionError.
+         "--ignore=tests/test_sentinel.py"
+         "--ignore=tests/test_asyncio/test_sentinel.py"
+         "--deselect=tests/test_commands.py::TestRedisCommands::test_psync"
+         "--deselect=tests/test_commands.py::TestRedisCommands::\
+test_xgroup_create_entriesread")
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-coverage-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                ((".*coverage.*") ""))))
           ;; Tests require a running Redis server.
           (add-before 'check 'start-redis
             (lambda* (#:key tests? #:allow-other-keys)
@@ -5080,13 +5071,12 @@ reasonable substitute.")
                         "--enable-debug-command" "yes"
                         "--enable-module-command" "local")))))))
     (native-inputs
-     (list python-numpy
+     (list python-hatchling
+           python-mock
+           python-numpy
            python-pytest
-           python-pytest-asyncio-0.23
-           python-pytest-cov
+           python-pytest-asyncio
            python-pytest-timeout
-           python-setuptools
-           python-wheel
            redis))
     (propagated-inputs
      (list python-async-timeout))

Reply via email to