···52 # tests do not appear to respect linker options on doctests
53 # Upstream issue: https://github.com/rust-lang/cargo/issues/14189
54 # This causes errors like "error: linker `cc` not found" on static builds
55- postInstallCheck = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
56- cargoCheckHook
57- '';
5859- # Failing on darwin for an unclear reason.
60 # According to the maintainers, those tests are from an experimental crate that isn't actually
61 # 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"
85 ];
8687 nativeInstallCheckInputs = [
···52 # tests do not appear to respect linker options on doctests
53 # Upstream issue: https://github.com/rust-lang/cargo/issues/14189
54 # This causes errors like "error: linker `cc` not found" on static builds
55+ doCheck = !stdenv.hostPlatform.isStatic;
005657+ # Failing on darwin for an unclear reason, but probably due to sandbox.
58 # According to the maintainers, those tests are from an experimental crate that isn't actually
59 # used by ruff currently and can thus be safely skipped.
60+ cargoTestFlags = lib.optionals stdenv.hostPlatform.isDarwin [
61+ "--workspace"
62+ "--exclude=red_knot"
0000000000000000000063 ];
6465 nativeInstallCheckInputs = [