evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / aiobotocore / default.nix
blobc21b2e2ad4dcfdd514618e419a8f43b429a2a3a8
2   lib,
3   aiohttp,
4   aioitertools,
5   botocore,
6   buildPythonPackage,
7   dill,
8   fetchFromGitHub,
9   flask,
10   flask-cors,
11   awscli,
12   moto,
13   boto3,
14   setuptools,
15   pytest-asyncio,
16   pytestCheckHook,
17   pythonAtLeast,
18   pythonOlder,
19   wrapt,
22 buildPythonPackage rec {
23   pname = "aiobotocore";
24   version = "2.15.1";
25   pyproject = true;
27   disabled = pythonOlder "3.8";
29   src = fetchFromGitHub {
30     owner = "aio-libs";
31     repo = "aiobotocore";
32     rev = "refs/tags/${version}";
33     hash = "sha256-kPSkvvXBBwnWrdf0jmDNiTG6T1qpm5pNcPDHpnMFdmc=";
34   };
36   # Relax version constraints: aiobotocore works with newer botocore versions
37   # the pinning used to match some `extras_require` we're not using.
38   pythonRelaxDeps = [ "botocore" ];
40   build-system = [ setuptools ];
42   dependencies = [
43     aiohttp
44     aioitertools
45     botocore
46     wrapt
47   ];
49   optional-dependencies = {
50     awscli = [ awscli ];
51     boto3 = [ boto3 ];
52   };
54   nativeCheckInputs = [
55     dill
56     flask
57     flask-cors
58     moto
59     pytest-asyncio
60     pytestCheckHook
61   ];
63   pythonImportsCheck = [ "aiobotocore" ];
65   disabledTestPaths = [
66     # Tests require network access
67     "tests/boto_tests/test_signers.py"
68     "tests/python3.8/"
69     "tests/test_basic_s3.py"
70     "tests/test_batch.py"
71     "tests/test_dynamodb.py"
72     "tests/test_ec2.py"
73     "tests/test_eventstreams.py"
74     "tests/test_lambda.py"
75     "tests/test_monitor.py"
76     "tests/test_mturk.py"
77     "tests/test_patches.py"
78     "tests/test_sns.py"
79     "tests/test_sqs.py"
80     "tests/test_version.py"
81     "tests/test_waiter.py"
82   ];
84   disabledTests =
85     [
86       "test_get_credential"
87       "test_load_sso_credentials_without_cache"
88       "test_load_sso_credentials"
89       "test_required_config_not_set"
90       "test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception"
91       "test_sso_credential_fetcher_can_fetch_credentials"
92     ]
93     ++ lib.optionals (pythonAtLeast "3.12.") [
94       # AttributeError: 'called_with' is not a valid assertion. Use a spec for the mock if 'called_with' is meant to be an attribute.
95       "test_max_rate_updated_on_success_response"
96       "test_max_rate_cant_exceed_20_percent_max"
97     ];
99   __darwinAllowLocalNetworking = true;
101   meta = with lib; {
102     description = "Python client for amazon services";
103     homepage = "https://github.com/aio-libs/aiobotocore";
104     changelog = "https://github.com/aio-libs/aiobotocore/releases/tag/${version}";
105     license = licenses.asl20;
106     maintainers = with maintainers; [ teh ];
107   };