1{ lib
2, aiohttp
3, asynctest
4, buildPythonPackage
5, ddt
6, fetchPypi
7, pbr
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "aioresponses";
14 version = "0.7.2";
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
20 };
21
22 nativeBuildInputs = [
23 pbr
24 ];
25
26 propagatedBuildInputs = [
27 aiohttp
28 ];
29
30 checkInputs = [
31 asynctest
32 ddt
33 pytestCheckHook
34 ];
35
36 disabledTests = [
37 # Skip a test which makes requests to httpbin.org
38 "test_address_as_instance_of_url_combined_with_pass_through"
39 "test_pass_through_with_origin_params"
40 ];
41
42 pythonImportsCheck = [ "aioresponses" ];
43
44 meta = {
45 description = "A helper to mock/fake web requests in python aiohttp package";
46 homepage = "https://github.com/pnuckowski/aioresponses";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ rvl ];
49 };
50}