12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-EX1tXe8KlwjrohzgzKDeJP0PjfKw8+lnQ7eg9PAUAfQ=";
23 cargoHash = "sha256-ueWSBYXcdaxagjFjxfsImulOs0zVVqGHmfXp4pQLaMM=";
31 ] ++ lib.optionals stdenv.isDarwin [
32 darwin.apple_sdk.frameworks.CoreServices
35 cargoBuildFlags = [ "--package=ruff_cli" ];
36 cargoTestFlags = cargoBuildFlags;
38 # tests expect no colors
44 installShellCompletion --cmd ruff \
45 --bash <($out/bin/ruff generate-shell-completion bash) \
46 --fish <($out/bin/ruff generate-shell-completion fish) \
47 --zsh <($out/bin/ruff generate-shell-completion zsh)
55 description = "An extremely fast Python linter";
56 homepage = "https://github.com/astral-sh/ruff";
57 changelog = "https://github.com/astral-sh/ruff/releases/tag/v${version}";
58 license = licenses.mit;
60 maintainers = with maintainers; [ figsoda ];