From 8cf21fbb8be6cf91b3ea2703f3e15a7ad7318a50 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Feb 2026 21:50:23 +0000 Subject: [PATCH 1/2] python3Packages.aioboto3: cleanup --- .../python-modules/aioboto3/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aioboto3/default.nix b/pkgs/development/python-modules/aioboto3/default.nix index 8f3a56165f65..fd1422b8fbb9 100644 --- a/pkgs/development/python-modules/aioboto3/default.nix +++ b/pkgs/development/python-modules/aioboto3/default.nix @@ -1,20 +1,30 @@ { lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + setuptools-scm, + + # dependencies aiobotocore, aiofiles, - buildPythonPackage, + + # optional-dependencies + # chalice chalice, + # s3cse cryptography, + + # tests dill, - fetchFromGitHub, moto, pytest-asyncio, pytestCheckHook, - setuptools, - setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aioboto3"; version = "15.5.0"; pyproject = true; @@ -22,7 +32,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "terricain"; repo = "aioboto3"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-yGKjcZlXs1f72OGX5rUWvfDKZAYU3ZV2RVQnd0InxBQ="; }; @@ -53,7 +63,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ moto.optional-dependencies.server - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; disabledTests = [ "test_patches" @@ -64,8 +74,8 @@ buildPythonPackage rec { 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/${src.rev}/CHANGELOG.rst"; + changelog = "https://github.com/terricain/aioboto3/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +}) From 22301607a0f97bf1fe8e58875a29931b85f247df Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 1 Feb 2026 21:54:33 +0000 Subject: [PATCH 2/2] python3Packages.aioboto3: skip flaky tests on darwin --- pkgs/development/python-modules/aioboto3/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/aioboto3/default.nix b/pkgs/development/python-modules/aioboto3/default.nix index fd1422b8fbb9..38aa46b44f53 100644 --- a/pkgs/development/python-modules/aioboto3/default.nix +++ b/pkgs/development/python-modules/aioboto3/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -67,6 +68,13 @@ buildPythonPackage (finalAttrs: { 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" ]; pythonImportsCheck = [ "aioboto3" ];