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