159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
41 lines
783 B
Nix
41 lines
783 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
|
|
pathspec,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
tree-sitter-languages,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grep-ast";
|
|
version = "0.3.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "grep_ast";
|
|
hash = "sha256-QriIfVcwHcVWNDaPjVSenEnJE9r7TRnJtUw922BPzPQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
pathspec
|
|
tree-sitter-languages
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|