python3Packages.tree-sitter-language-pack: 0.6.1 -> 0.7.3

This commit is contained in:
Zexin Yuan
2025-05-20 15:21:51 +08:00
parent 3fb9306f40
commit 501b5b8fe3
@@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "tree-sitter-language-pack";
version = "0.6.1";
version = "0.7.3";
pyproject = true;
# Using the GitHub sources necessitates fetching the treesitter grammar parsers by using a vendored script:
@@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "tree_sitter_language_pack";
inherit version;
hash = "sha256-pGNfW2ubZCVi2QHk6qJfyClJ1mDIi5R1Pm1GfZY0Ark=";
hash = "sha256-SROctgfYE1LTOtGOV1IPwQV6AJlVyczO1WYHzBjmo/0=";
};
build-system = [
@@ -42,6 +42,12 @@ buildPythonPackage rec {
tree-sitter-yaml
];
prePatch = ''
# Remove the packaged bindings, which only work on Linux and prevent the build from succeeding
# https://github.com/Goldziher/tree-sitter-language-pack/issues/46
rm -rf tree_sitter_language_pack/bindings/*.so
'';
pythonImportsCheck = [
"tree_sitter_language_pack"
"tree_sitter_language_pack.bindings"