blob: 98657560eaa3ea67615c9baf594924049c33aef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
tree-sitter,
}:
buildPythonPackage rec {
pname = "tree-sitter-python";
version = "0.25.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "tree-sitter-python";
tag = "v${version}";
hash = "sha256-F5XH21PjPpbwYylgKdwD3MZ5o0amDt4xf/e5UikPcxY=";
};
build-system = [
setuptools
];
optional-dependencies = {
core = [
tree-sitter
];
};
# There are no tests
doCheck = false;
pythonImportsCheck = [ "tree_sitter_python" ];
meta = {
description = "Python grammar for tree-sitter";
homepage = "https://github.com/tree-sitter/tree-sitter-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
|