2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
2024-01-25 14:12:00 +00:00
|
|
|
, aiobotocore
|
|
|
|
, aiofiles
|
|
|
|
, boto3
|
2023-10-09 19:29:22 +00:00
|
|
|
, buildPythonPackage
|
2024-01-25 14:12:00 +00:00
|
|
|
, chalice
|
|
|
|
, cryptography
|
|
|
|
, dill
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-25 14:12:00 +00:00
|
|
|
, moto
|
2023-10-09 19:29:22 +00:00
|
|
|
, poetry-core
|
|
|
|
, poetry-dynamic-versioning
|
|
|
|
, pytest-asyncio
|
2024-01-25 14:12:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-10-09 19:29:22 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioboto3";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "12.3.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terrycain";
|
|
|
|
repo = "aioboto3";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-GDuxy/V+j0LRJ2lbcRHMEAga+pdCbYIWhEt3ItrHMB4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiobotocore
|
2024-02-29 20:09:43 +00:00
|
|
|
] ++ aiobotocore.optional-dependencies.boto3;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
chalice = [
|
|
|
|
chalice
|
|
|
|
];
|
|
|
|
s3cse = [
|
|
|
|
cryptography
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
aiofiles
|
|
|
|
dill
|
2024-01-25 14:12:00 +00:00
|
|
|
moto
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioboto3"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Our moto package is not ready to support more tests
|
|
|
|
"encrypt_decrypt_aes_cbc"
|
|
|
|
"test_chalice_async"
|
|
|
|
"test_dynamo"
|
|
|
|
"test_flush_doesnt_reset_item_buffer"
|
|
|
|
"test_kms"
|
|
|
|
"test_s3"
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wrapper to use boto3 resources with the aiobotocore async backend";
|
|
|
|
homepage = "https://github.com/terrycain/aioboto3";
|
|
|
|
changelog = "https://github.com/terrycain/aioboto3/blob/${src.rev}/CHANGELOG.rst";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
|
|
};
|
|
|
|
}
|