From bba77e69fc1642c39698af393c4e379cfe26cf8e Mon Sep 17 00:00:00 2001 From: superherointj Date: Sat, 25 Apr 2026 18:35:30 -0300 Subject: [PATCH] python3Packages.aioboto3: disable DynamoDB tests with aiobotocore 3.x DynamoDB tests fail with aiobotocore 3.x due to HTTP header issue with moto: 'Duplicate Server header found'. This is the same issue that causes aiobotocore itself to disable its DynamoDB tests. Fixes 7 test failures: - 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 --- pkgs/development/python-modules/aioboto3/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/aioboto3/default.nix b/pkgs/development/python-modules/aioboto3/default.nix index 38aa46b44f53..b22ca1c0420b 100644 --- a/pkgs/development/python-modules/aioboto3/default.nix +++ b/pkgs/development/python-modules/aioboto3/default.nix @@ -75,6 +75,17 @@ buildPythonPackage (finalAttrs: { "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" ];