Skip to content

Commit

Permalink
ruff: 0.8.0 -> 0.8.1 (#360065)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Nov 29, 2024
2 parents da1fc06 + 6a2e100 commit 3915d87
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions pkgs/by-name/ru/ruff/package.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
python3Packages,
darwin,
fetchFromGitHub,
rustPlatform,
installShellFiles,
rust-jemalloc-sys,
ruff-lsp,
nix-update-script,
versionCheckHook,
libiconv,

# passthru
ruff-lsp,
nixosTests,
nix-update-script,
}:

python3Packages.buildPythonPackage rec {
pname = "ruff";
version = "0.8.0";
version = "0.8.1";
pyproject = true;

outputs = [
Expand All @@ -28,7 +28,7 @@ python3Packages.buildPythonPackage rec {
owner = "astral-sh";
repo = "ruff";
rev = "refs/tags/${version}";
hash = "sha256-yenGZ7TuiHtY/3AIjMPlHVtQPP6PHMc1wdezfZdVtK0=";
hash = "sha256-N3TplR+vPu2r56VP/vnOfkxN3Lh2o92kE2hFZKLXO04=";
};

# Do not rely on path lookup at runtime to find the ruff binary
Expand All @@ -41,7 +41,7 @@ python3Packages.buildPythonPackage rec {

cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-O5+uVYWtSMEj7hBrc/FUuqRBN4hUlEbtDPF42kpL7PA=";
hash = "sha256-iddUzip2LmBMOB+MfpI4k3OitdPbwAZkc4szDPB6duM=";
};

nativeBuildInputs =
Expand All @@ -52,14 +52,9 @@ python3Packages.buildPythonPackage rec {
cargoCheckHook
]);

buildInputs =
[
rust-jemalloc-sys
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
libiconv
];
buildInputs = [
rust-jemalloc-sys
];

postInstall =
''
Expand All @@ -74,14 +69,6 @@ python3Packages.buildPythonPackage rec {
--zsh <($bin/bin/ruff generate-shell-completion zsh)
'';

passthru = {
tests = {
inherit ruff-lsp;
nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox;
};
updateScript = nix-update-script { };
};

# Run cargo tests
cargoCheckType = "debug";
postInstallCheck = ''
Expand Down Expand Up @@ -123,6 +110,17 @@ python3Packages.buildPythonPackage rec {

pythonImportsCheck = [ "ruff" ];

passthru = {
tests =
{
inherit ruff-lsp;
}
// lib.optionalAttrs stdenv.hostPlatform.isLinux {
nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox;
};
updateScript = nix-update-script { };
};

meta = {
description = "Extremely fast Python linter";
homepage = "https://github.com/astral-sh/ruff";
Expand Down

0 comments on commit 3915d87

Please sign in to comment.