Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, buildPythonPackage 4, ddt 5, fetchPypi 6, pbr 7, pytestCheckHook 8, pythonOlder 9, setuptools 10}: 11 12buildPythonPackage rec { 13 pname = "aioresponses"; 14 version = "0.7.4"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.5"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-m4wQizY1TARjO60Op1K1XZVqdgL+PjI0uTn8RK+W8dg="; 22 }; 23 24 nativeBuildInputs = [ 25 pbr 26 ]; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 setuptools 31 ]; 32 33 nativeCheckInputs = [ 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}