GNU bug report logs -
#49123
[PATCH 0/24] Add mirage
Previous Next
Full log
Message #50 received at 49123 <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 3 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.