nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pytest-aiohttp, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "aiohttp-retry"; 13 version = "2.9.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "inyutin"; 18 repo = "aiohttp_retry"; 19 tag = "v${version}"; 20 hash = "sha256-8S4gjeN8ktdDNd8GUsejaZdCaG/VXYPo0RJpwrrttGQ="; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace-fail 'version="2.9.0"' 'version="${version}"' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ aiohttp ]; 31 32 __darwinAllowLocalNetworking = true; 33 34 nativeCheckInputs = [ 35 pytest-aiohttp 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "aiohttp_retry" ]; 40 41 pytestFlags = [ "--asyncio-mode=auto" ]; 42 43 meta = { 44 description = "Retry client for aiohttp"; 45 homepage = "https://github.com/inyutin/aiohttp_retry"; 46 changelog = "https://github.com/inyutin/aiohttp_retry/releases/tag/${src.tag}"; 47 license = lib.licenses.mit; 48 maintainers = with lib.maintainers; [ fab ]; 49 }; 50}