1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pytest-aiohttp 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "aiohttp-retry"; 12 version = "2.8.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "inyutin"; 19 repo = "aiohttp_retry"; 20 rev = "v${version}"; 21 hash = "sha256-Zr68gx8ZR9jKrogmqaFLvpBAIHE9ptHm0zZ/b49cCLw="; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 ]; 27 28 __darwinAllowLocalNetworking = true; 29 30 nativeCheckInputs = [ 31 pytest-aiohttp 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "aiohttp_retry" 37 ]; 38 39 pytestFlagsArray = [ 40 "--asyncio-mode=auto" 41 ]; 42 43 meta = with lib; { 44 description = "Retry client for aiohttp"; 45 homepage = "https://github.com/inyutin/aiohttp_retry"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}