ruff: 0.0.236 -> 0.0.237
Diff: https://github.com/charliermarsh/ruff/compare/v0.0.236...v0.0.237 Changelog: https://github.com/charliermarsh/ruff/releases/tag/v0.0.237
This commit is contained in:
parent
379dfe6a9f
commit
11973e45c0
1 changed files with 15 additions and 3 deletions
|
@ -1,22 +1,27 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ruff";
|
||||
version = "0.0.236";
|
||||
version = "0.0.237";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "charliermarsh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-2JV0isbVkpEt6bsLdTbII9LjtvdGB22ZDSpf7bj6dto=";
|
||||
sha256 = "sha256-c2mD03gxbBnnifTXPpdJk4kwpeHdrwckymaFGKJwDc8=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-cjMz3L24CRk1Qoz7sapk3EKtFfm8Uto+jtLy71rDGvQ=";
|
||||
cargoSha256 = "sha256-pYOMCmNrI4uzqXkbc2D9UvNHg2PlibmEhtml+A1V1BQ=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
|
@ -25,6 +30,13 @@ rustPlatform.buildRustPackage rec {
|
|||
# building tests fails with `undefined symbols`
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd ruff \
|
||||
--bash <($out/bin/ruff generate-shell-completion bash) \
|
||||
--fish <($out/bin/ruff generate-shell-completion fish) \
|
||||
--zsh <($out/bin/ruff generate-shell-completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An extremely fast Python linter";
|
||||
homepage = "https://github.com/charliermarsh/ruff";
|
||||
|
|
Loading…
Reference in a new issue