nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 54 lines 991 B view raw
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.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.5"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-LGTtVxDujLTpWMVpGE2tEvTJzVk5E1yzj4jGqCYczrM="; 22 }; 23 24 nativeBuildInputs = [ 25 pbr 26 ]; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 ]; 31 32 checkInputs = [ 33 asynctest 34 ddt 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # Skip a test which makes requests to httpbin.org 40 "test_address_as_instance_of_url_combined_with_pass_through" 41 "test_pass_through_with_origin_params" 42 ]; 43 44 pythonImportsCheck = [ 45 "aioresponses" 46 ]; 47 48 meta = { 49 description = "A helper to mock/fake web requests in python aiohttp package"; 50 homepage = "https://github.com/pnuckowski/aioresponses"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ rvl ]; 53 }; 54}