3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ruff/default.nix

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

35 lines
780 B
Nix
Raw Normal View History

2022-09-25 17:46:28 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.177";
2022-09-25 17:46:28 +01:00
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4X4dEVcKjcgww0JnqXkuSbK+VEF4C4/0QLfFrfAoRJ8=";
2022-09-25 17:46:28 +01:00
};
cargoSha256 = "sha256-JnIvSIiJC3eR7vDrkIfElxM79dZAHrdcvtNw26zKoqw=";
2022-09-25 17:46:28 +01:00
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
Security
];
meta = with lib; {
description = "An extremely fast Python linter";
homepage = "https://github.com/charliermarsh/ruff";
2022-11-20 19:43:52 +00:00
changelog = "https://github.com/charliermarsh/ruff/releases/tag/v${version}";
2022-09-25 17:46:28 +01:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}