unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58482] [PATCH] gnu: python-responses: Update to 0.22.0.
@ 2022-10-13  6:12 jgart via Guix-patches via
  2023-01-29  7:20 ` bug#58482: " 宋文武 via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: jgart via Guix-patches via @ 2022-10-13  6:12 UTC (permalink / raw)
  To: 58482; +Cc: jgart

* 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.
---
 gnu/packages/python-web.scm | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6a9d6ee61d..7f6b8b3daf 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3461,22 +3461,31 @@ (define-public python-cookies
 (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
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#58482: [PATCH] gnu: python-responses: Update to 0.22.0.
  2022-10-13  6:12 [bug#58482] [PATCH] gnu: python-responses: Update to 0.22.0 jgart via Guix-patches via
@ 2023-01-29  7:20 ` 宋文武 via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-01-29  7:20 UTC (permalink / raw)
  To: jgart; +Cc: 58482-done

jgart <jgart@dismail.de> writes:

> * 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.

Applied, thank you!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-29  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13  6:12 [bug#58482] [PATCH] gnu: python-responses: Update to 0.22.0 jgart via Guix-patches via
2023-01-29  7:20 ` bug#58482: " 宋文武 via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).