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

34 lines
697 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.81";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ZhC3tsiNa/2EZtMu40qNPLa5aPTLp3T7HxgXmUWJ+CI=";
};
cargoSha256 = "sha256-t972ufnWfJyc0OWKba3bp1WIMveY6s/N8slbyQZgYPE=";
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 ];
};
}