ruff-lsp: add nix-update-script and testVersion

This commit is contained in:
Gaetan Lepage
2024-08-17 01:35:24 +02:00
parent 7a90bd2759
commit bca6423391
+9 -1
View File
@@ -1,9 +1,12 @@
{
lib,
stdenv,
python3,
fetchFromGitHub,
stdenv,
ruff,
nix-update-script,
testers,
ruff-lsp,
}:
python3.pkgs.buildPythonApplication rec {
@@ -53,6 +56,11 @@ python3.pkgs.buildPythonApplication rec {
"--unset PYTHONPATH"
];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = ruff-lsp; };
};
meta = {
changelog = "https://github.com/astral-sh/ruff-lsp/releases/tag/v${version}";
description = "Language Server Protocol implementation for Ruff";