nixpkgs/pkgs/development/tools/ruff/default.nix
2022-10-09 22:21:11 -04:00

34 lines
697 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.65";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aRi9csYpCa0i/PDRjR2QhlxSDxcWtGyYj2a7gxjBmyM=";
};
cargoSha256 = "sha256-FTLjEIbvguq5hvrZYffyZ4y2A+AKD+MVJ+b/2TB0V+4=";
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 ];
};
}