2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiobotocore,
|
|
|
|
aiofiles,
|
|
|
|
buildPythonPackage,
|
|
|
|
chalice,
|
|
|
|
cryptography,
|
|
|
|
dill,
|
|
|
|
fetchFromGitHub,
|
|
|
|
moto,
|
|
|
|
poetry-core,
|
|
|
|
poetry-dynamic-versioning,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
requests,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "aiobotocore" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ aiobotocore ] ++ aiobotocore.optional-dependencies.boto3;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
chalice = [ chalice ];
|
|
|
|
s3cse = [ cryptography ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aioboto3" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|