From 3e1b768ec7a37ea0e0dec24242080586703dc720 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 17 Oct 2024 22:05:05 +0200 Subject: [PATCH] python312Packages.ruff-lsp: 0.0.57 -> 0.0.58 Diff: https://github.com/astral-sh/ruff-lsp/compare/refs/tags/v0.0.57...v0.0.58 Changelog: https://github.com/astral-sh/ruff-lsp/releases/tag/v0.0.58 --- pkgs/by-name/ru/ruff-lsp/package.nix | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/ru/ruff-lsp/package.nix b/pkgs/by-name/ru/ruff-lsp/package.nix index 344dce7755c6..b2a3a9285a72 100644 --- a/pkgs/by-name/ru/ruff-lsp/package.nix +++ b/pkgs/by-name/ru/ruff-lsp/package.nix @@ -1,28 +1,28 @@ { lib, - stdenv, - python3, + python3Packages, fetchFromGitHub, # nativeCheckInputs ruff, + # tests + versionCheckHook, + # passthru nix-update-script, - testers, - ruff-lsp, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "ruff-lsp"; - version = "0.0.57"; + version = "0.0.58"; pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "ruff-lsp"; rev = "refs/tags/v${version}"; - hash = "sha256-w9NNdsDD+YLrCw8DHDhVx62MdwLhcN8QSmb/2rqlb5g="; + hash = "sha256-TB4OcKkaUGYAmiGNJRnfRmiXTyTQL4sFoBrzxT6DWec="; }; postPatch = '' @@ -30,24 +30,23 @@ python3.pkgs.buildPythonApplication rec { sed -i '/"ruff>=/d' pyproject.toml ''; - build-system = with python3.pkgs; [ hatchling ]; + build-system = with python3Packages; [ hatchling ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ packaging pygls lsprotocol typing-extensions ]; - # fails in linux sandbox - doCheck = stdenv.hostPlatform.isDarwin; - - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python3Packages; [ pytestCheckHook pytest-asyncio python-lsp-jsonrpc ruff + versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; makeWrapperArgs = [ # prefer ruff from user's PATH, that's usually desired behavior @@ -61,7 +60,6 @@ python3.pkgs.buildPythonApplication rec { passthru = { updateScript = nix-update-script { }; - tests.version = testers.testVersion { package = ruff-lsp; }; }; meta = {