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"