guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#49123] [PATCH 15/24] gnu: Add python-aioresponses.


From: slg
Subject: [bug#49123] [PATCH 15/24] gnu: Add python-aioresponses.
Date: Sat, 19 Jun 2021 22:07:33 -0300

* gnu/packages/python-web.scm (python-aioresponses): New variable.
---
 gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d4a959aacf..3a01a8c33c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6054,3 +6054,31 @@ your code non-blocking and speedy.")
      "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling)
  functionality.")
     (license license:asl2.0)))
+
+(define-public python-aioresponses
+  (package
+    (name "python-aioresponses")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "aioresponses" version))
+       (sha256
+        (base32
+         "16p8mdyfirddrsay62ji7rwcrqmmzxzf2isdbfm9cj5p338rbr42"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ;; Tests make http requests
+    (propagated-inputs
+     `(("python-aiohttp" ,python-aiohttp)))
+    (native-inputs
+     `(("python-pbr" ,python-pbr)))
+    (home-page "https://github.com/pnuckowski/aioresponses";)
+    (synopsis "Mock out requests made by ClientSession from aiohttp package")
+    (description "Aioresponses is a helper to mock/fake web requests in python
+aiohttp package.  For requests module there are a lot of packages that help us
+with testing (eg. httpretty, responses, requests-mock).  When it comes to
+testing asynchronous HTTP requests it is a bit harder (at least at the 
beginning).
+The purpose of this package is to provide an easy way to test asynchronous HTTP
+requests.")
+    (license license:x11)))
-- 
2.32.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]