2024-06-20 14:57:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, tree-sitter
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tree-sitter-json";
|
|
|
|
version = "0.21.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tree-sitter";
|
|
|
|
repo = "tree-sitter-json";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-waejAbS7MjrE7w03MPqvBRpEpqTcKc6RgKCVSYaDV1Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-20 14:57:18 +00:00
|
|
|
core = [
|
|
|
|
tree-sitter
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "tree_sitter_json" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JSON grammar for tree-sitter";
|
|
|
|
homepage = "https://github.com/tree-sitter/tree-sitter-json";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|