Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
871 B
Nix
42 lines
871 B
Nix
{
|
|
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";
|
|
};
|
|
}
|