ruff-lsp: remove

The package was deprecated in February 2025 and is not updated to support
latest version of ruff.
This commit is contained in:
Konstantin Alekseev
2025-04-21 06:11:42 +03:00
parent a138374b66
commit 090f9b33f5
3 changed files with 4 additions and 77 deletions

View File

@@ -1,68 +0,0 @@
{
lib,
python3Packages,
fetchFromGitHub,
# tests
versionCheckHook,
# passthru
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "ruff-lsp";
version = "0.0.62";
pyproject = true;
src = fetchFromGitHub {
owner = "astral-sh";
repo = "ruff-lsp";
tag = "v${version}";
hash = "sha256-aYhNvT4rcaEzuqwql7TpFkCoyH77uSG7r6uY5aIzhrk=";
};
build-system = with python3Packages; [ hatchling ];
dependencies = with python3Packages; [
lsprotocol
packaging
pygls
ruff
typing-extensions
];
nativeCheckInputs = with python3Packages; [
pytest-asyncio
pytestCheckHook
python-lsp-jsonrpc
ruff
versionCheckHook
];
versionCheckProgramArg = "--version";
makeWrapperArgs = [
# prefer ruff from user's PATH, that's usually desired behavior
"--suffix PATH : ${lib.makeBinPath (with python3Packages; [ ruff ])}"
# Unset ambient PYTHONPATH in the wrapper, so ruff-lsp only ever runs with
# its own, isolated set of dependencies. This works because the correct
# PYTHONPATH is set in the Python script, which runs after the wrapper.
"--unset PYTHONPATH"
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/astral-sh/ruff-lsp/releases/tag/v${version}";
description = "Language Server Protocol implementation for Ruff";
homepage = "https://github.com/astral-sh/ruff-lsp";
license = lib.licenses.mit;
mainProgram = "ruff-lsp";
maintainers = with lib.maintainers; [
figsoda
kalekseev
];
};
}

View File

@@ -10,7 +10,6 @@
versionCheckHook,
# passthru
ruff-lsp,
nixosTests,
nix-update-script,
}:
@@ -70,13 +69,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
doInstallCheck = true;
passthru = {
tests =
{
inherit ruff-lsp;
}
// lib.optionalAttrs stdenv.hostPlatform.isLinux {
nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox;
};
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox;
};
updateScript = nix-update-script { };
};

View File

@@ -683,7 +683,7 @@ mapAliases ({
ruamel_base = ruamel-base; # added 2021-11-01
ruamel_yaml = ruamel-yaml; # added 2021-11-01
ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01
inherit (super.pkgs) ruff-lsp; # added 2023-06-23
ruff-lsp = throw "ruff-lsp has been deprecated, use `ruff server` instead"; # added 2025-04-21
runway-python = throw "SDK has been deprecated and was archived by upstream"; # added 2023-05-03
safe = throw "safe has been removed, it was unmaintained sinced October 2019"; # added 2024-07-28
sampledata = throw "sampledata has been removed, it was unmaintained since 2017"; # added 2024-07-27