Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / aioresponses / default.nix
blob2a3a2e60be7946a196d000e920b1f8173f341381
1 { lib
2 , aiohttp
3 , asynctest
4 , buildPythonPackage
5 , ddt
6 , fetchPypi
7 , pbr
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "aioresponses";
14   version = "0.7.2";
15   disabled = pythonOlder "3.5";
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
20   };
22   nativeBuildInputs = [
23     pbr
24   ];
26   propagatedBuildInputs = [
27     aiohttp
28   ];
30   checkInputs = [
31     asynctest
32     ddt
33     pytestCheckHook
34   ];
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   ];
42   pythonImportsCheck = [ "aioresponses" ];
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   };