diff options
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r-- | gnu/packages/databases.scm | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 031f9d5c0e..547016c85a 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3654,22 +3654,20 @@ on another machine, accessed via TCP/IP.") (define-public python-peewee (package (name "python-peewee") - (version "3.17.9") + (version "3.18.2") (source (origin (method url-fetch) (uri (pypi-uri "peewee" version)) (sha256 - (base32 "1a67kdmyd0y3xzhqj5r90wlpqfg703cqx36awg429qsq2w0cs5gy")))) + (base32 "184n97vc9xy0whl8w54431fc4h5ij7mjwggnfbmg5bv1xdil59bp")))) (build-system pyproject-build-system) (arguments `(#:tests? #f)) ; fails to import test data (inputs (list sqlite)) (native-inputs - (list python-cython - python-setuptools - python-wheel)) + (list python-setuptools)) (home-page "https://github.com/coleifer/peewee/") (synopsis "Small object-relational mapping utility") (description @@ -4858,39 +4856,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 |