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