python313Packages.swh-shard: disable some tests on Darwin

This commit is contained in:
Pol Dellaiera
2026-03-15 10:07:46 +01:00
parent d307b913e5
commit fe905bbdb7
@@ -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";