depot/third_party/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

82 lines
1.5 KiB
Nix

{ lib
, aiobotocore
, aiofiles
, boto3
, buildPythonPackage
, chalice
, cryptography
, dill
, fetchFromGitHub
, moto
, poetry-core
, poetry-dynamic-versioning
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "aioboto3";
version = "12.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "terrycain";
repo = "aioboto3";
rev = "refs/tags/v${version}";
hash = "sha256-CVRDQhymQRi5dyVBLJYTnF3RI4jPBB966dVMT4lOd8g=";
};
nativeBuildInputs = [
poetry-core
poetry-dynamic-versioning
];
propagatedBuildInputs = [
aiobotocore
boto3
];
passthru.optional-dependencies = {
chalice = [
chalice
];
s3cse = [
cryptography
];
};
nativeCheckInputs = [
aiofiles
dill
moto
pytest-asyncio
pytestCheckHook
requests
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
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"
];
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 ];
};
}