diff options
Diffstat (limited to 'pkgs/development/tools/language-servers/ruff-lsp/default.nix')
-rw-r--r-- | pkgs/development/tools/language-servers/ruff-lsp/default.nix | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/pkgs/development/tools/language-servers/ruff-lsp/default.nix b/pkgs/development/tools/language-servers/ruff-lsp/default.nix deleted file mode 100644 index cf14e02435448..0000000000000 --- a/pkgs/development/tools/language-servers/ruff-lsp/default.nix +++ /dev/null @@ -1,74 +0,0 @@ -{ lib -, stdenv -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, ruff -, pygls -, lsprotocol -, hatchling -, typing-extensions -, packaging -, pytestCheckHook -, python-lsp-jsonrpc -, pytest-asyncio -}: - -buildPythonPackage rec { - pname = "ruff-lsp"; - version = "0.0.53"; - pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchFromGitHub { - owner = "astral-sh"; - repo = "ruff-lsp"; - rev = "refs/tags/v${version}"; - hash = "sha256-gtMqIsgGCzSBo5D4+Ne8tUloDV9+MufYkN96yr7XVd4="; - }; - - postPatch = '' - # ruff binary added to PATH in wrapper so it's not needed - sed -i '/"ruff>=/d' pyproject.toml - ''; - - nativeBuildInputs = [ - hatchling - ]; - - propagatedBuildInputs = [ - packaging - pygls - lsprotocol - typing-extensions - ]; - - # fails in linux sandbox - doCheck = stdenv.isDarwin; - - nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio - python-lsp-jsonrpc - ruff - ]; - - makeWrapperArgs = [ - # prefer ruff from user's PATH, that's usually desired behavior - "--suffix PATH : ${lib.makeBinPath [ 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" - ]; - - meta = with lib; { - 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 = licenses.mit; - mainProgram = "ruff-lsp"; - maintainers = with maintainers; [ figsoda kalekseev ]; - }; -} |