python313Packages.swh-scanner: disable some tests on Darwin only

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