···5252 # tests do not appear to respect linker options on doctests
5353 # Upstream issue: https://github.com/rust-lang/cargo/issues/14189
5454 # This causes errors like "error: linker `cc` not found" on static builds
5555- postInstallCheck = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
5656- cargoCheckHook
5757- '';
5555+ doCheck = !stdenv.hostPlatform.isStatic;
58565959- # Failing on darwin for an unclear reason.
5757+ # Failing on darwin for an unclear reason, but probably due to sandbox.
6058 # According to the maintainers, those tests are from an experimental crate that isn't actually
6159 # used by ruff currently and can thus be safely skipped.
6262- checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
6363- "--skip=added_package"
6464- "--skip=add_search_path"
6565- "--skip=changed_file"
6666- "--skip=changed_versions_file"
6767- "--skip=deleted_file"
6868- "--skip=directory_deleted"
6969- "--skip=directory_moved_to_trash"
7070- "--skip=directory_moved_to_workspace"
7171- "--skip=directory_renamed"
7272- "--skip=hard_links_in_workspace"
7373- "--skip=hard_links_to_target_outside_workspace"
7474- "--skip=move_file_to_trash"
7575- "--skip=move_file_to_workspace"
7676- "--skip=nested_packages_delete_root"
7777- "--skip=new_file"
7878- "--skip=new_ignored_file"
7979- "--skip=removed_package"
8080- "--skip=rename_file"
8181- "--skip=search_path"
8282- "--skip=unix::changed_metadata"
8383- "--skip=unix::symlinked_module_search_path"
8484- "--skip=unix::symlink_inside_workspace"
6060+ cargoTestFlags = lib.optionals stdenv.hostPlatform.isDarwin [
6161+ "--workspace"
6262+ "--exclude=red_knot"
8563 ];
86648765 nativeInstallCheckInputs = [