python3Packages.tree-sitter-language-pack: init at 0.23.2

Co-authored-by: Diogo Doreto <diogo@doreto.com.br>
This commit is contained in:
Zexin Yuan
2025-04-01 09:33:44 +08:00
co-authored by Diogo Doreto
parent de290fd512
commit 669838a73e
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,54 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
cython,
setuptools,
typing-extensions,
tree-sitter,
tree-sitter-c-sharp,
tree-sitter-embedded-template,
tree-sitter-yaml,
}:
let
version = "0.6.1";
in
buildPythonPackage {
pname = "tree-sitter-language-pack";
inherit version;
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "tree_sitter_language_pack";
inherit version;
hash = "sha256-pGNfW2ubZCVi2QHk6qJfyClJ1mDIi5R1Pm1GfZY0Ark=";
};
build-system = [
cython
setuptools
typing-extensions
];
dependencies = [
tree-sitter
tree-sitter-c-sharp
tree-sitter-embedded-template
tree-sitter-yaml
];
pythonImportsCheck = [
"tree_sitter_language_pack"
"tree_sitter_language_pack.bindings"
];
meta = {
description = "Comprehensive collection of tree-sitter languages";
homepage = "https://github.com/Goldziher/tree-sitter-language-pack/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yzx9 ];
};
}
+2
View File
@@ -17394,6 +17394,8 @@ self: super: with self; {
tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
tree-sitter-language-pack = callPackage ../development/python-modules/tree-sitter-language-pack { };
tree-sitter-make = callPackage ../development/python-modules/tree-sitter-make { };
tree-sitter-python = callPackage ../development/python-modules/tree-sitter-python { };