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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{
lib,
aioboto3,
aiobotocore,
aiofiles,
aiohttp,
aiosqlite,
attrs,
buildPythonPackage,
faker,
fetchPypi,
itsdangerous,
motor,
poetry-core,
pytest-asyncio,
pytest-aiohttp,
pytestCheckHook,
redis,
url-normalize,
}:
buildPythonPackage rec {
pname = "aiohttp-client-cache";
version = "0.14.1";
pyproject = true;
src = fetchPypi {
pname = "aiohttp_client_cache";
inherit version;
hash = "sha256-r1VW9xmBSsoC22OEJxBpzsame+Maa32UN+CmqZgKSU8=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
attrs
itsdangerous
url-normalize
];
optional-dependencies = {
all = [
aioboto3
aiobotocore
aiofiles
aiosqlite
motor
redis
];
dynamodb = [
aioboto3
aiobotocore
];
filesystem = [
aiofiles
aiosqlite
];
mongodb = [ motor ];
redis = [ redis ];
sqlite = [ aiosqlite ];
};
nativeCheckInputs = [
faker
pytest-asyncio
pytest-aiohttp
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "aiohttp_client_cache" ];
disabledTestPaths = [
# Tests require running instances of the services
"test/integration/*"
];
meta = {
description = "Async persistent cache for aiohttp requests";
homepage = "https://github.com/requests-cache/aiohttp-client-cache";
changelog = "https://github.com/requests-cache/aiohttp-client-cache/blob/v${version}/HISTORY.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ seirl ];
};
}
|