Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 41 lines 783 B view raw
1{ 2 buildPythonPackage, 3 fetchPypi, 4 lib, 5 6 pathspec, 7 pytestCheckHook, 8 setuptools, 9 tree-sitter-languages, 10}: 11 12buildPythonPackage rec { 13 pname = "grep-ast"; 14 version = "0.3.3"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit version; 19 pname = "grep_ast"; 20 hash = "sha256-QriIfVcwHcVWNDaPjVSenEnJE9r7TRnJtUw922BPzPQ="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 pathspec 27 tree-sitter-languages 28 ]; 29 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}