diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-03-18 14:08:24 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:17 +0200 |
| commit | 6309ac44c68b627b8095e2544a80f6f943425f51 (patch) | |
| tree | 8468caaa4c6e088f59f5831b9ff7c98316acdd2d /gnu/packages/python-xyz.scm | |
| parent | 7ff7963cd9c39a71c7c72ca8634f2f83c547aa88 (diff) | |
gnu: python-ratelimiter: Update to 1.2.0.post1.
* gnu/packages/python-xyz.scm (python-ratelimiter): Update to 1.2.0.post1.
[build-system]: Use pyproject-build-system.
[arguments]: Add phase 'pytest-compatibility.
[native-inputs]: Add python-pytest, python-pytest-asyncio, python-setuptools,
and python-wheel.
Change-Id: I9f7665feb4cf31e38185be7e0cd5ffe7691e26f7
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e9289b4690..24ef684eb7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28193,17 +28193,30 @@ in human-readable HTML format.") (define-public python-ratelimiter (package (name "python-ratelimiter") - (version "1.2.0") + (version "1.2.0.post1") (source (origin - (method url-fetch) - (uri (pypi-uri "ratelimiter" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/RazerM/ratelimiter") + ;; From https://github.com/RazerM/ratelimiter/pull/11 + (commit "59a0827c434706d62b89e16a220e4ae12e618858"))) (sha256 (base32 - "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p")))) - (build-system python-build-system) + "1v34w12f41j0l2gy9ji9ip01kj4idjfjx7a97wrlr1ibxi7hg3bs")))) + (build-system pyproject-build-system) (arguments - '(#:tests? #f)) ; There are no tests in the pypi archive. + (list #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'pytest-compatibility + (lambda _ + (substitute* "tests/conftest.py" + (("pytest.collect.File") "pytest.File"))))))) + (native-inputs + (list python-pytest + python-pytest-asyncio + python-setuptools + python-wheel)) (home-page "https://github.com/RazerM/ratelimiter") (synopsis "Simple rate limiting object") (description |
