From 6a2e100c0b21ed75d1aa06767811b0f4d1f56c1a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 29 Nov 2024 08:05:50 +0100 Subject: [PATCH] ruff: 0.8.0 -> 0.8.1 Diff: https://github.com/astral-sh/ruff/compare/refs/tags/0.8.0...0.8.1 Changelog: https://github.com/astral-sh/ruff/releases/tag/0.8.1 --- pkgs/by-name/ru/ruff/package.nix | 50 +++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/ru/ruff/package.nix b/pkgs/by-name/ru/ruff/package.nix index 2449165caeb0e..ea326706b008b 100644 --- a/pkgs/by-name/ru/ruff/package.nix +++ b/pkgs/by-name/ru/ruff/package.nix @@ -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 = [ @@ -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 @@ -41,7 +41,7 @@ python3Packages.buildPythonPackage rec { cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-O5+uVYWtSMEj7hBrc/FUuqRBN4hUlEbtDPF42kpL7PA="; + hash = "sha256-iddUzip2LmBMOB+MfpI4k3OitdPbwAZkc4szDPB6duM="; }; nativeBuildInputs = @@ -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 = '' @@ -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 = '' @@ -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";