python312Packages.lsp-tree-sitter: don't propagate versioned tree-sitter

Python packages must not propagate such versioned packages due to PYTHONPATH conflicts.
This commit is contained in:
natsukium
2024-08-07 11:39:13 +03:00
committed by Doron Behar
parent f8957ffbab
commit 1753f2845e
@@ -8,7 +8,7 @@
jinja2,
jsonschema,
pygls,
tree-sitter0_21,
tree-sitter,
pytestCheckHook,
}:
@@ -34,12 +34,7 @@ buildPythonPackage rec {
jinja2
jsonschema
pygls
# The build won't fail if we had used tree-sitter (version > 0.21), but
# this package is only a dependency of autotools-language-server which also
# depends on tree-sitter-languages which must use tree-sitter0_21 and not
# tree-sitter. Hence we avoid different tree-sitter versions dependency
# mismatch by defaulting here to this lower version.
tree-sitter0_21
tree-sitter
];
nativeCheckInputs = [ pytestCheckHook ];