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