ruff: skip some failing tests on darwin (#374697)

authored by

Gaétan Lepage and committed by
GitHub
935af66a b9929317

+5 -27
+5 -27
pkgs/by-name/ru/ruff/package.nix
··· 52 52 # tests do not appear to respect linker options on doctests 53 53 # Upstream issue: https://github.com/rust-lang/cargo/issues/14189 54 54 # This causes errors like "error: linker `cc` not found" on static builds 55 - postInstallCheck = lib.optionalString (!stdenv.hostPlatform.isStatic) '' 56 - cargoCheckHook 57 - ''; 55 + doCheck = !stdenv.hostPlatform.isStatic; 58 56 59 - # Failing on darwin for an unclear reason. 57 + # Failing on darwin for an unclear reason, but probably due to sandbox. 60 58 # According to the maintainers, those tests are from an experimental crate that isn't actually 61 59 # used by ruff currently and can thus be safely skipped. 62 - checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ 63 - "--skip=added_package" 64 - "--skip=add_search_path" 65 - "--skip=changed_file" 66 - "--skip=changed_versions_file" 67 - "--skip=deleted_file" 68 - "--skip=directory_deleted" 69 - "--skip=directory_moved_to_trash" 70 - "--skip=directory_moved_to_workspace" 71 - "--skip=directory_renamed" 72 - "--skip=hard_links_in_workspace" 73 - "--skip=hard_links_to_target_outside_workspace" 74 - "--skip=move_file_to_trash" 75 - "--skip=move_file_to_workspace" 76 - "--skip=nested_packages_delete_root" 77 - "--skip=new_file" 78 - "--skip=new_ignored_file" 79 - "--skip=removed_package" 80 - "--skip=rename_file" 81 - "--skip=search_path" 82 - "--skip=unix::changed_metadata" 83 - "--skip=unix::symlinked_module_search_path" 84 - "--skip=unix::symlink_inside_workspace" 60 + cargoTestFlags = lib.optionals stdenv.hostPlatform.isDarwin [ 61 + "--workspace" 62 + "--exclude=red_knot" 85 63 ]; 86 64 87 65 nativeInstallCheckInputs = [