diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-22 00:40:07 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:55 +0100 |
| commit | 8408a2acd3c211980cc2237a450a85a2596f8cb6 (patch) | |
| tree | 0b05d87d98c79451f7b4fb69dcc51000c92e034f /gnu/packages/python-xyz.scm | |
| parent | a2c1a9bc715fd1f2d1c1972424d29c3f233c594c (diff) | |
gnu: python-limits: Update to 5.5.0 and setup tests.
* gnu/packages/python-xyz.scm (python-limits): Update to 5.5.0.
[source]: Switch to git-fetch.
[arguments]<#:tests?, test-flags, phases>: Setup tests.
[native-inputs]: Add python-flaky, python-pytest,
python-pytest-asyncio, python-pytest-benchmark, python-pytest-cov,
python-pytest-lazy-fixtures, python-pytest-xdist, python-setuptools.
[description]: Improve style.
Change-Id: I738eb037a2e90b7cd9492793e1061561ce5f3ffb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0b99d4fb5f..a7cebc509f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4970,21 +4970,49 @@ conventions and aliases in the same expression.") (define-public python-limits (package (name "python-limits") - (version "4.0.1") + (version "5.5.0") (source (origin - (method url-fetch) - (uri (pypi-uri "limits" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/alisaifee/limits") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0nkdwkvn2rs5swnd4ihv6yg6b5124apqzrrymqcm75pwil2mqkx5")))) + (base32 "1ykld43q1pbvds4wsb18wagh852byzjpcjqg1xwa5cldigmkc2x0")))) (build-system pyproject-build-system) - (propagated-inputs (list python-deprecated python-packaging - python-typing-extensions)) - (native-inputs (list python-setuptools python-wheel)) + (arguments + (list + ;; XXX: Despite running only unit tests, pytest exits with an error code. + #:tests? #f + #:test-flags #~(list "-m" "unit") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'ignore-K-pytest-option + (lambda _ + (substitute* "pytest.ini" + (("-K") ""))))))) + (propagated-inputs (list python-deprecated python-packaging)) + (native-inputs + (list ; python-etcd3 + python-flaky + python-pytest + python-pytest-asyncio + python-pytest-benchmark + python-pytest-cov + python-pytest-lazy-fixtures + python-pytest-xdist + ;; python-pymemcache + ;; python-pymongo + ;; python-redis + python-setuptools + ;; python-valkey + )) (home-page "https://limits.readthedocs.io/") (synopsis "Rate limiting utilities") - (description "This package provides a Python library to perform rate -limiting with commonly used storage backends.") + (description + "This package provides a Python library to perform rate limiting with +commonly used storage backends.") (license license:expat))) (define-public python-wand |
