depot/third_party/nixpkgs/pkgs/development/tools/ruff/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

33 lines
697 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.48";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-KTvssDMy9Gol98jRPxDwjRIPAWNKU2Dx0TKAFvsX2zE=";
};
cargoSha256 = "sha256-9OX1s461S5KDfwYq0kEI55LV4FmLGLEWI69wWOmDxtI=";
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 ];
};
}