depot/third_party/nixpkgs/pkgs/development/python-modules/tree-sitter-json/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
790 B
Nix

{ 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
];
passthru.optional-dependencies = {
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 ];
};
}