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