[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
- [bug#49123] [PATCH 06/24] gnu: Add python-logbook., (continued)
- [bug#49123] [PATCH 06/24] gnu: Add python-logbook., slg, 2021/06/19
- [bug#49123] [PATCH 04/24] gnu: Add python-html-sanitizer., slg, 2021/06/19
- [bug#49123] [PATCH 07/24] gnu: python-unpaddedbase64: Update to 2.1.0., slg, 2021/06/19
- [bug#49123] [PATCH 08/24] gnu: python-pycryptodome: Update to 3.10.1., slg, 2021/06/19
- [bug#49123] [PATCH 09/24] gnu: python-hyperframe: Update to 6.0.1., slg, 2021/06/19
- [bug#49123] [PATCH 13/24] gnu: python-socks: Update to 1.2.4., slg, 2021/06/19
- [bug#49123] [PATCH 14/24] gnu: python-aiohttp-socks: Update to 0.6.0., slg, 2021/06/19
- [bug#49123] [PATCH 11/24] gnu: python-h11: Update to 0.12.0., slg, 2021/06/19
- [bug#49123] [PATCH 10/24] gnu: python-h2: Update to 4.0.0., slg, 2021/06/19
- [bug#49123] [PATCH 12/24] gnu: python-future: Update to 0.18.2., slg, 2021/06/19
- [bug#49123] [PATCH 15/24] gnu: Add python-aioresponses.,
slg <=
- [bug#49123] [PATCH 16/24] gnu: python-hpack: Update to 4.0.0., slg, 2021/06/19
- [bug#49123] [PATCH 18/24] gnu: python-pymediainfo: Update to 5.1.0., slg, 2021/06/19
- [bug#49123] [PATCH 17/24] gnu: Add python-matrix-nio., slg, 2021/06/19
- [bug#49123] [PATCH 21/24] gnu: Add python-baron., slg, 2021/06/19
- [bug#49123] [PATCH 22/24] gnu: Add python-redbaron., slg, 2021/06/19
- [bug#49123] [PATCH 24/24] gnu: Add mirage., slg, 2021/06/19
- [bug#49123] [PATCH 19/24] gnu: python-watchgod: Update to 0.7., slg, 2021/06/19
- [bug#49123] [PATCH 23/24] gnu: Add python-hsluv., slg, 2021/06/19
- [bug#49123] [PATCH 20/24] gnu: Add python-plyer., slg, 2021/06/19