diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 031f9d5c0e7..951ae8826d8 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