diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 23:04:14 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 23:04:37 +0000 |
commit | 5aa4f67ed1e4745997af8d04937dd236d830833a (patch) | |
tree | ee942cd742eabc6689c1c1dafbd9b7b6d0ba4d95 /gnu | |
parent | 09a342bc785cca12e895f7376c5febf89f90467e (diff) | |
download | guix-5aa4f67ed1e4745997af8d04937dd236d830833a.tar guix-5aa4f67ed1e4745997af8d04937dd236d830833a.tar.gz |
gnu: python-redis: Fix build.
* gnu/packages/databases.scm (python-redis)
[arguments]<test-flags>: Refactor with 'string-join' to simplify test
skip procedure.
<phases>: Remove 'relax-requirements.
[native-inputs]: Add python-pytest-cov.
Change-Id: I595dc2bfe856ebac834ac7a80ac3862126c6b284
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/databases.scm | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 5b86e3dd67..27b2ecf3c2 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -4439,31 +4439,26 @@ reasonable substitute.") "and not redismod " "and not ssl " "and not graph") - "-k" (string-append - ;; 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). - "and not test_sync " - "and not test_psync " - ;; Same with: "Error 111 connecting to - ;; localhost:6479. Connection refused." - "and not test_tfcall " - "and not test_tfunction_load_delete " - "and not test_tfunction_list" - ;; AssertionError: assert 3 == 2 - "and not test_acl_list")) + "-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") + " and not ")) #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - ;; FIXME Our version of python-async-timeout is just a little - ;; too old, but upgrading it would cause close to 1000 rebuilds. - (substitute* '("requirements.txt" "setup.py") - (("async-timeout>=4.0.3") - "async-timeout>=4.0.2")))) ;; Tests require a running Redis server. (add-before 'check 'start-redis (lambda* (#:key tests? #:allow-other-keys) @@ -4475,6 +4470,7 @@ reasonable substitute.") (list python-numpy python-pytest python-pytest-asyncio-0.23 + python-pytest-cov python-pytest-timeout python-setuptools python-wheel |