From fe905bbdb75eb72473d6f1d4473a7661c833c8ef Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 11 Mar 2026 14:53:34 +0100 Subject: [PATCH] python313Packages.swh-shard: disable some tests on Darwin --- .../python-modules/swh-shard/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/python-modules/swh-shard/default.nix b/pkgs/development/python-modules/swh-shard/default.nix index a07c344b04a2..37e67ce539c9 100644 --- a/pkgs/development/python-modules/swh-shard/default.nix +++ b/pkgs/development/python-modules/swh-shard/default.nix @@ -1,4 +1,5 @@ { + stdenv, buildPythonPackage, click, cmake, @@ -62,6 +63,18 @@ buildPythonPackage rec { rm src/swh/shard/*.py ''; + disabledTests = [ + "test_setup_log_handler_with_env_configuration" + ] + ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ + # assert (51675136 - 51396608) < (100 * 1024) + "test_memleak" + # ValueError: Cannot convert negative int + "test_write_above_rlimit_fsize" + # ValueError: Cannot convert negative int + "test_finalize_above_rlimit_fsize" + ]; + meta = { changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-shard/-/tags/v2.2.0"; description = "Shard File Format for the Software Heritage Object Storage";