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.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
jgart 2022-10-13 01:12:32 -05:00 committed by 宋文武
parent e225dbcb1d
commit 962ba70109
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -3571,22 +3571,31 @@ Python.")
(define-public python-responses (define-public python-responses
(package (package
(name "python-responses") (name "python-responses")
(version "0.10.6") (version "0.22.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "responses" version)) (uri (pypi-uri "responses" version))
(sha256 (sha256
(base32 (base32
"147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah")))) "0bhhffwl0zqin4xc89nc97ynzr7l3j4b8rjqk9w9flnj2cmcnsir"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(;; Test suite is not distributed: '(#:phases
;; https://github.com/getsentry/responses/issues/38 (modify-phases %standard-phases
#:tests? #f)) (replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(native-inputs (native-inputs
(list python-mock)) (list python-mock
python-pytest
python-pytest-asyncio
python-pytest-httpserver))
(propagated-inputs (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") (home-page "https://github.com/getsentry/responses")
(synopsis "Utility for mocking out the `requests` Python library") (synopsis "Utility for mocking out the `requests` Python library")
(description "A utility library for mocking out the `requests` Python (description "A utility library for mocking out the `requests` Python