python3Packages.tree-sitter-bash: init at 0.25.1

This commit is contained in:
Gaetan Lepage
2026-02-17 21:41:04 +00:00
parent af85bf3cb3
commit 29fac18dc9
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
tree-sitter,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "tree-sitter-bash";
version = "0.25.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "tree-sitter-bash";
tag = "v${finalAttrs.version}";
hash = "sha256-ONQ1Ljk3aRWjElSWD2crCFZraZoRj3b3/VELz1789GE=";
};
build-system = [
setuptools
];
optional-dependencies = {
core = [
tree-sitter
];
};
pythonImportsCheck = [ "tree_sitter_bash" ];
nativeCheckInputs = [
pytestCheckHook
tree-sitter
];
meta = {
description = "Bash grammar for tree-sitter";
homepage = "https://github.com/tree-sitter/tree-sitter-bash";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
+2
View File
@@ -19353,6 +19353,8 @@ self: super: with self; {
tree-sitter = callPackage ../development/python-modules/tree-sitter { };
tree-sitter-bash = callPackage ../development/python-modules/tree-sitter-bash { };
tree-sitter-c-sharp = callPackage ../development/python-modules/tree-sitter-c-sharp { };
tree-sitter-embedded-template =