a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
34 lines
780 B
Nix
34 lines
780 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, CoreServices
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ruff";
|
|
version = "0.0.183";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "charliermarsh";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xZSPRSqtf62BSfNw3eJEvsxqGBpy/v5DKWz6mipjsAY=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-s7IQtfcRvcLgvzep0Ya6i7+OfFlQwFNG67SQe5D0/Ec=";
|
|
|
|
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 ];
|
|
};
|
|
}
|