ruff: init at 0.0.46

This commit is contained in:
figsoda 2022-09-25 12:46:28 -04:00
parent ab72904494
commit c0fe1c0eae
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "ruff";
version = "0.0.46";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
sha256 = "10khkcv2bjsxkwn18vkm025v2qxdiymy8gmky09xz37s51bysvlh";
};
cargoSha256 = "sha256-i0fQ8oEbZen9LD1dccXc4pczBMadP1/fk1cwaNKvVYQ=";
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 ];
};
}

View file

@ -36273,6 +36273,10 @@ with pkgs;
rucksack = callPackage ../development/tools/rucksack { };
ruff = callPackage ../development/tools/ruff {
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
};
sam-ba = callPackage ../tools/misc/sam-ba { };
sndio = callPackage ../misc/sndio { };