Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies aiobotocore, aiofiles,
# optional-dependencies # chalice chalice, # s3cse cryptography,
# tests dill, moto, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "aioboto3"; version = "15.5.0"; pyproject = true;
src = fetchFromGitHub { owner = "terricain"; repo = "aioboto3"; tag = "v${finalAttrs.version}"; hash = "sha256-yGKjcZlXs1f72OGX5rUWvfDKZAYU3ZV2RVQnd0InxBQ="; };
pythonRelaxDeps = [ "aiobotocore" ];
build-system = [ setuptools setuptools-scm ];
dependencies = [ aiobotocore aiofiles ] ++ aiobotocore.optional-dependencies.boto3;
optional-dependencies = { chalice = [ chalice ]; s3cse = [ cryptography ]; };
nativeCheckInputs = [ dill moto pytest-asyncio pytestCheckHook ] ++ moto.optional-dependencies.server ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
disabledTests = [ "test_patches" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Flaky: PermissionError: [Errno 13] Permission denied: '/tmp/somefile' "test_s3_copy" "test_s3_copy_multipart" "test_s3_download_file_404" "test_s3_upload_file" ] ++ [ # DynamoDB tests fail with aiobotocore 3.x due to HTTP header issue with moto: # "Duplicate 'Server' header found" - same issue as aiobotocore disables "test_dynamo_resource_query" "test_dynamo_resource_put" "test_dynamo_resource_batch_write_flush_on_exit_context" "test_dynamo_resource_batch_write_flush_amount" "test_flush_doesnt_reset_item_buffer" "test_dynamo_resource_property" "test_dynamo_resource_waiter" ];
pythonImportsCheck = [ "aioboto3" ];
meta = { description = "Wrapper to use boto3 resources with the aiobotocore async backend"; homepage = "https://github.com/terricain/aioboto3"; changelog = "https://github.com/terricain/aioboto3/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.asl20; maintainers = [ ]; };})