biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-client-cache / default.nix
blob6f31169384653215d9a0801e91b6dbc911bda866
2   lib,
3   aioboto3,
4   aiobotocore,
5   aiofiles,
6   aiohttp,
7   aiosqlite,
8   attrs,
9   buildPythonPackage,
10   faker,
11   fetchPypi,
12   itsdangerous,
13   motor,
14   poetry-core,
15   pytest-aiohttp,
16   pytestCheckHook,
17   pythonOlder,
18   redis,
19   url-normalize,
22 buildPythonPackage rec {
23   pname = "aiohttp-client-cache";
24   version = "0.11.1";
25   pyproject = true;
27   disabled = pythonOlder "3.8";
29   src = fetchPypi {
30     pname = "aiohttp_client_cache";
31     inherit version;
32     hash = "sha256-MuY60hAkD4Ik8+Encv5TrBAs8kx88Y3bhqy7n9+eS28=";
33   };
35   build-system = [ poetry-core ];
37   dependencies = [
38     aiohttp
39     attrs
40     itsdangerous
41     url-normalize
42   ];
44   optional-dependencies = {
45     all = [
46       aioboto3
47       aiobotocore
48       aiofiles
49       aiosqlite
50       motor
51       redis
52     ];
53     dynamodb = [
54       aioboto3
55       aiobotocore
56     ];
57     filesystem = [
58       aiofiles
59       aiosqlite
60     ];
61     mongodb = [ motor ];
62     redis = [ redis ];
63     sqlite = [ aiosqlite ];
64   };
66   nativeCheckInputs = [
67     faker
68     pytest-aiohttp
69     pytestCheckHook
70   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
72   pythonImportsCheck = [ "aiohttp_client_cache" ];
74   disabledTestPaths = [
75     # Tests require running instances of the services
76     "test/integration/test_dynamodb.py"
77     "test/integration/test_redis.py"
78     "test/integration/test_sqlite.py"
79   ];
81   meta = with lib; {
82     description = "Async persistent cache for aiohttp requests";
83     homepage = "https://github.com/requests-cache/aiohttp-client-cache";
84     changelog = "https://github.com/requests-cache/aiohttp-client-cache/blob/v${version}/HISTORY.md";
85     license = licenses.mit;
86     maintainers = with maintainers; [ seirl ];
87   };