From d307b913e5166d4c48a2e5a09372da4279824796 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 10 Mar 2026 22:16:23 +0100 Subject: [PATCH] python313Packages.swh-scanner: disable some tests on Darwin only --- pkgs/development/python-modules/swh-scanner/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/swh-scanner/default.nix b/pkgs/development/python-modules/swh-scanner/default.nix index 5dca94bb53d2..7dcfb97929e8 100644 --- a/pkgs/development/python-modules/swh-scanner/default.nix +++ b/pkgs/development/python-modules/swh-scanner/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitLab, setuptools, @@ -65,6 +66,13 @@ buildPythonPackage rec { types-requests ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin) [ + # Failed: Failed to start the server after 5 seconds. + "test_add_provenance_with_release" + "test_add_provenance_with_revision" + "test_scanner_result" + ]; + disabledTestPaths = [ # pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......" "swh/scanner/tests/test_policy.py"