Skip to content

Commit 2e6c0a7

Browse files
committed
python312Packages.tree-sitter-make: init at 1.1.1
1 parent affab2b commit 2e6c0a7

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
cargo,
6+
rustPlatform,
7+
rustc,
8+
setuptools,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "tree-sitter-make";
13+
version = "1.1.1";
14+
pyproject = true;
15+
16+
src = fetchFromGitHub {
17+
owner = "tree-sitter-grammars";
18+
repo = "tree-sitter-make";
19+
rev = "v${version}";
20+
hash = "sha256-WiuhAp9JZKLd0wKCui9MV7AYFOW9dCbUp+kkVl1OEz0=";
21+
};
22+
23+
cargoDeps = rustPlatform.fetchCargoTarball {
24+
inherit src;
25+
name = "${pname}-${version}";
26+
hash = "sha256-RI/wBnapWdr4kYshx9d9iN9nB30bR91uQ063yqNy4aA=";
27+
};
28+
29+
build-system = [
30+
cargo
31+
rustPlatform.cargoSetupHook
32+
rustc
33+
setuptools
34+
];
35+
36+
# There are no tests
37+
doCheck = false;
38+
pythonImportsCheck = [
39+
"tree_sitter_make"
40+
];
41+
42+
meta = {
43+
description = "Makefile grammar for tree-sitter";
44+
homepage = "https://github.com/tree-sitter-grammars/tree-sitter-make";
45+
license = lib.licenses.mit;
46+
maintainers = with lib.maintainers; [ doronbehar ];
47+
};
48+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16398,6 +16398,8 @@ self: super: with self; {
1639816398

1639916399
tree-sitter-json = callPackage ../development/python-modules/tree-sitter-json { };
1640016400

16401+
tree-sitter-make = callPackage ../development/python-modules/tree-sitter-make { };
16402+
1640116403
tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
1640216404

1640316405
treelib = callPackage ../development/python-modules/treelib { };

0 commit comments

Comments
 (0)