blob: b5221ed7d2f3b458c0777571a4b90124d12f9615 (
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
|
{
buildPythonPackage,
fetchPypi,
lib,
pathspec,
setuptools,
tree-sitter-language-pack,
}:
buildPythonPackage rec {
pname = "grep-ast";
version = "0.9.0";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "grep_ast";
hash = "sha256-YgokKkST5nITONHJpsI0rmUfh3T0kkptz5D2hl1LLuM=";
};
build-system = [ setuptools ];
dependencies = [
pathspec
tree-sitter-language-pack
];
# Tests disabled due to pending update from tree-sitter-languages to tree-sitter-language-pack
# nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "grep_ast" ];
meta = {
homepage = "https://github.com/paul-gauthier/grep-ast";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ greg ];
description = "Python implementation of the ast-grep tool";
mainProgram = "grep-ast";
};
}
|