11 buildPythonPackage rec {
12 pname = "python-lsp-ruff";
15 disabled = pythonOlder "3.7";
19 pname = "python-lsp-ruff";
20 sha256 = "sha256-vf3ZNZyen1W29qk4ST1sus5VTcys9F3067NlUr406bg=";
24 # ruff binary is used directly, the ruff python package is not needed
25 sed -i '/"ruff>=/d' pyproject.toml
26 sed -i 's|sys.executable, "-m", "ruff"|"${ruff}/bin/ruff"|' pylsp_ruff/plugin.py
29 propagatedBuildInputs = [
32 ] ++ lib.optionals (pythonOlder "3.11") [
39 homepage = "https://github.com/python-lsp/python-lsp-ruff";
40 description = "Ruff linting plugin for pylsp";
41 changelog = "https://github.com/python-lsp/python-lsp-ruff/releases/tag/v${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ linsui ];