{ lib , rustPlatform , fetchFromGitHub , stdenv , CoreServices , Security }: rustPlatform.buildRustPackage rec { pname = "ruff"; version = "0.0.176"; src = fetchFromGitHub { owner = "charliermarsh"; repo = pname; rev = "v${version}"; sha256 = "sha256-klkOaHX5BUuxDnY61TXk1Z8yFkYaIGnHyT0wiBsAqfs="; }; cargoSha256 = "sha256-vwAI8kO285aS01KWSyb8kfX7TdLei0j4KfK9ftfbH+4="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ]; meta = with lib; { description = "An extremely fast Python linter"; homepage = "https://github.com/charliermarsh/ruff"; changelog = "https://github.com/charliermarsh/ruff/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; }; }