nixpkgs/pkgs/development/tools/ruff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
697 B
Nix
Raw Normal View History

2022-09-25 16:46:28 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
2022-10-12 17:27:54 +00:00
version = "0.0.72";
2022-09-25 16:46:28 +00:00
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
2022-10-12 17:27:54 +00:00
sha256 = "sha256-K2wrPDb0GcwhGzLFNGXMH7CKTleOHwe3FtA82BZk+Bo=";
2022-09-25 16:46:28 +00:00
};
2022-10-12 17:27:54 +00:00
cargoSha256 = "sha256-acB8kcdItJyE2Mr+fU0yojpDJh02V21DZfqQ5q+Wn20=";
2022-09-25 16:46:28 +00:00
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 ];
};
}