From: Ricardo Wurmus <rekado@elephly.net>
To: 74652@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>,
Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#74652] [PATCH v2 2/3] gnu: python-fakeredis: Update to 2.26.1.
Date: Mon, 2 Dec 2024 18:01:41 +0100 [thread overview]
Message-ID: <beada8c4109a687276d3602d270bba8ad460fd8f.1733158902.git.rekado@elephly.net> (raw)
In-Reply-To: <08be2c7ed2588b659ad2fa43eddd99c57e10b3f2.1733158902.git.rekado@elephly.net>
* gnu/packages/databases.scm (python-fakeredis): Update to 2.26.1.
[arguments]: Do not run slow tests; add phases 'poetry-compatibility and
'start-redis.
[propagated-inputs]: Add python-typing-extensions.
[native-inputs]: Add redis.
Change-Id: I18ed122d9e5307d3d723cfc9ef0d51f120b4ccb5
---
gnu/packages/databases.scm | 38 ++++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index c7edada862c..996d61e486d 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4341,7 +4341,7 @@ (define-public python-hiredis
(define-public python-fakeredis
(package
(name "python-fakeredis")
- (version "2.10.1")
+ (version "2.26.1")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
@@ -4350,18 +4350,36 @@ (define-public python-fakeredis
(file-name (git-file-name name version))
(sha256
(base32
- "1imsi9dswvkda894sm53lfzdsna0qlrgxszczlq2sam68zn4hfz6"))))
+ "10f9qwpc9vlcd2411c398n9kwjsk399vk1pjd9dbczlhvsn9s5bq"))))
(build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'relax-requirements
- (lambda _
- (substitute* "pyproject.toml"
- (("sortedcontainers = \"\\^2\\.4\"")
- "sortedcontainers = \"^2.1\"")))))))
+ (list
+ #:test-flags '(list "-m" "not slow")
+ #: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
- python-pytest-asyncio python-pytest-mock))
- (propagated-inputs (list python-redis python-sortedcontainers))
+ python-pytest-asyncio python-pytest-mock
+ redis))
+ (propagated-inputs
+ (list python-redis
+ python-sortedcontainers
+ python-typing-extensions))
(home-page "https://github.com/cunla/fakeredis-py")
(synopsis "Fake implementation of redis API for testing purposes")
(description
--
2.46.0
next prev parent reply other threads:[~2024-12-02 17:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 15:36 [bug#74652] [PATCH] gnu: python-redis: Update to 5.2.0 Ricardo Wurmus
2024-12-02 17:01 ` [bug#74652] [PATCH v2 1/3] " Ricardo Wurmus
2024-12-02 17:01 ` Ricardo Wurmus [this message]
2024-12-02 17:01 ` [bug#74652] [PATCH v2 3/3] gnu: python-falcon: Fix tests Ricardo Wurmus
2024-12-03 2:36 ` bug#74652: [PATCH] gnu: python-redis: Update to 5.2.0 Hilton Chain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=beada8c4109a687276d3602d270bba8ad460fd8f.1733158902.git.rekado@elephly.net \
--to=rekado@elephly.net \
--cc=74652@debbugs.gnu.org \
--cc=sharlatanus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).