guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 470dd23942891cc6e7974ad3c159f5dfb5d84c05
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Nov 12 12:19:06 2025 +0000
gnu: Add python-rush.
* gnu/packages/python-xyz.scm (python-rush): New variable.
Change-Id: I1e7500e63b986e33bed8eb6c1e14181eebd23463
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6a22ddce1b..bd3cef36e3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2057,6 +2057,42 @@ edit distance algorithm for Python in Cython for high
performance.")
requiring minimal changes to the code.")
(license license:expat)))
+(define-public python-rush
+ (package
+ (name "python-rush")
+ (version "2021.04.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sigmavirus24/rush")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0brqjw34n14rij58giwyqlagjnp11npvsrlwrqj5pbn7rmgd2mhx"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; E ValueError: Redis URL must specify one of the following schemes
+ ;; (redis://, rediss://, unix://)
+ #~(list "-k" (string-append "not test_valid_url[redis://]"
+ " and not test_valid_url[rediss://]"))))
+ (native-inputs
+ (list python-mock
+ python-redis
+ python-rfc3986
+ python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-attrs))
+ (home-page "https://github.com/sigmavirus24/rush")
+ (synopsis "Throttling and rate-limiting algorithms for Python")
+ (description
+ "This package provides is a small collection of algorithms that can be
+reused when throttling user interactions with a resource (e.g., an API).")
+ (license license:expat)))
+
(define-public python-safety-schemas
(package
(name "python-safety-schemas")