depot/third_party/nixpkgs/pkgs/development/python-modules/grep-ast/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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";
};
}