1{
2 lib,
3 aiobotocore,
4 aiofiles,
5 buildPythonPackage,
6 chalice,
7 cryptography,
8 dill,
9 fetchFromGitHub,
10 moto,
11 pytest-asyncio,
12 pytestCheckHook,
13 setuptools,
14 setuptools-scm,
15}:
16
17buildPythonPackage rec {
18 pname = "aioboto3";
19 version = "14.3.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "terrycain";
24 repo = "aioboto3";
25 tag = "v${version}";
26 hash = "sha256-3GdTpbU0uEEzezQPHJTGPB42Qu604eIhcIAP4rZMQiY=";
27 };
28
29 pythonRelaxDeps = [
30 "aiobotocore"
31 ];
32
33 build-system = [
34 setuptools
35 setuptools-scm
36 ];
37
38 dependencies = [
39 aiobotocore
40 aiofiles
41 ]
42 ++ aiobotocore.optional-dependencies.boto3;
43
44 optional-dependencies = {
45 chalice = [ chalice ];
46 s3cse = [ cryptography ];
47 };
48
49 nativeCheckInputs = [
50 dill
51 moto
52 pytest-asyncio
53 pytestCheckHook
54 ]
55 ++ moto.optional-dependencies.server
56 ++ lib.flatten (builtins.attrValues optional-dependencies);
57
58 disabledTests = [
59 "test_patches"
60 ];
61
62 pythonImportsCheck = [ "aioboto3" ];
63
64 meta = {
65 description = "Wrapper to use boto3 resources with the aiobotocore async backend";
66 homepage = "https://github.com/terrycain/aioboto3";
67 changelog = "https://github.com/terrycain/aioboto3/blob/${src.rev}/CHANGELOG.rst";
68 license = lib.licenses.asl20;
69 maintainers = with lib.maintainers; [ mbalatsko ];
70 };
71}