at master 871 B view raw
1{ 2 buildPythonPackage, 3 fetchPypi, 4 lib, 5 6 pathspec, 7 setuptools, 8 tree-sitter-language-pack, 9}: 10 11buildPythonPackage rec { 12 pname = "grep-ast"; 13 version = "0.9.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit version; 18 pname = "grep_ast"; 19 hash = "sha256-YgokKkST5nITONHJpsI0rmUfh3T0kkptz5D2hl1LLuM="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 pathspec 26 tree-sitter-language-pack 27 ]; 28 29 # Tests disabled due to pending update from tree-sitter-languages to tree-sitter-language-pack 30 # nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "grep_ast" ]; 33 34 meta = { 35 homepage = "https://github.com/paul-gauthier/grep-ast"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ greg ]; 38 description = "Python implementation of the ast-grep tool"; 39 mainProgram = "grep-ast"; 40 }; 41}