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 checkInputs = [
29 pytest-aiohttp
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "aiohttp_retry"
35 ];
36
37 pytestFlagsArray = [
38 "--asyncio-mode=auto"
39 ];
40
41 meta = with lib; {
42 description = "Retry client for aiohttp";
43 homepage = "https://github.com/inyutin/aiohttp_retry";
44 license = licenses.mit;
45 maintainers = with maintainers; [ fab ];
46 };
47}