diff options
author | jgart <jgart@dismail.de> | 2022-10-13 01:12:32 -0500 |
---|---|---|
committer | Guix Patches Tester <> | 2022-11-18 12:22:51 +0100 |
commit | 60e026ad1fc2e820a8ce5105a0de6f94ab1b1323 (patch) | |
tree | 8c85c840d0eb834b564b88f64ebb7867bf92aba7 | |
parent | 983906ab72307a5b848a54233b30d9744356de07 (diff) | |
download | guix-patches-60e026ad1fc2e820a8ce5105a0de6f94ab1b1323.tar guix-patches-60e026ad1fc2e820a8ce5105a0de6f94ab1b1323.tar.gz |
gnu: python-responses: Update to 0.22.0.
* gnu/packages/python-web.scm (python-responses): Update to 0.22.0.
[arguments]: Enable tests.
[native-inputs]: Add python-pytest, python-pytest-asyncio, and
python-pytest-httpserver.
[inputs]: Add python-types-toml.
-rw-r--r-- | gnu/packages/python-web.scm | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 871062f697..81156e8a3c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3539,22 +3539,31 @@ Python.") (define-public python-responses (package (name "python-responses") - (version "0.10.6") + (version "0.22.0") (source (origin (method url-fetch) (uri (pypi-uri "responses" version)) (sha256 (base32 - "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah")))) + "0bhhffwl0zqin4xc89nc97ynzr7l3j4b8rjqk9w9flnj2cmcnsir")))) (build-system python-build-system) (arguments - `(;; Test suite is not distributed: - ;; https://github.com/getsentry/responses/issues/38 - #:tests? #f)) + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-v"))))))) (native-inputs - (list python-mock)) + (list python-mock + python-pytest + python-pytest-asyncio + python-pytest-httpserver)) (propagated-inputs - (list python-requests python-cookies python-six)) + (list python-requests + python-cookies + python-six + python-types-toml)) (home-page "https://github.com/getsentry/responses") (synopsis "Utility for mocking out the `requests` Python library") (description "A utility library for mocking out the `requests` Python |