22 buildPythonPackage rec {
23 pname = "aiobotocore";
27 disabled = pythonOlder "3.8";
29 src = fetchFromGitHub {
32 rev = "refs/tags/${version}";
33 hash = "sha256-kPSkvvXBBwnWrdf0jmDNiTG6T1qpm5pNcPDHpnMFdmc=";
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 ];
49 optional-dependencies = {
63 pythonImportsCheck = [ "aiobotocore" ];
66 # Tests require network access
67 "tests/boto_tests/test_signers.py"
69 "tests/test_basic_s3.py"
71 "tests/test_dynamodb.py"
73 "tests/test_eventstreams.py"
74 "tests/test_lambda.py"
75 "tests/test_monitor.py"
77 "tests/test_patches.py"
80 "tests/test_version.py"
81 "tests/test_waiter.py"
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"
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"
99 __darwinAllowLocalNetworking = true;
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 ];