at master 1.4 kB view raw
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 = "15.1.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "terricain"; 24 repo = "aioboto3"; 25 tag = "v${version}"; 26 hash = "sha256-H/hAfFyBfeBoR6nW0sv3/AzFPATUl2uJ+JbzNB5xemo="; 27 }; 28 29 # https://github.com/terricain/aioboto3/pull/377 30 patches = [ ./boto3-compat.patch ]; 31 32 pythonRelaxDeps = [ 33 "aiobotocore" 34 ]; 35 36 build-system = [ 37 setuptools 38 setuptools-scm 39 ]; 40 41 dependencies = [ 42 aiobotocore 43 aiofiles 44 ] 45 ++ aiobotocore.optional-dependencies.boto3; 46 47 optional-dependencies = { 48 chalice = [ chalice ]; 49 s3cse = [ cryptography ]; 50 }; 51 52 nativeCheckInputs = [ 53 dill 54 moto 55 pytest-asyncio 56 pytestCheckHook 57 ] 58 ++ moto.optional-dependencies.server 59 ++ lib.flatten (builtins.attrValues optional-dependencies); 60 61 disabledTests = [ 62 "test_patches" 63 ]; 64 65 pythonImportsCheck = [ "aioboto3" ]; 66 67 meta = { 68 description = "Wrapper to use boto3 resources with the aiobotocore async backend"; 69 homepage = "https://github.com/terricain/aioboto3"; 70 changelog = "https://github.com/terricain/aioboto3/blob/${src.rev}/CHANGELOG.rst"; 71 license = lib.licenses.asl20; 72 maintainers = with lib.maintainers; [ mbalatsko ]; 73 }; 74}