depot/third_party/nixpkgs/pkgs/development/tools/ruff/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

33 lines
698 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.102";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-vYN73RcVwu2gwa+09wPqeIvqAx/SHnpe5m6fuXrK1ts=";
};
cargoSha256 = "sha256-6CBadq+VuUhUvzjgTo+qRy5RsoLotEWuR4+lyf9YFjU=";
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 ];
};
}