biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / tree-sitter-json / default.nix
blob0e6cd37f8b87aa75e86d1956d1fad4261f0e2a35
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , tree-sitter
6 }:
8 buildPythonPackage rec {
9   pname = "tree-sitter-json";
10   version = "0.21.0";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "tree-sitter";
15     repo = "tree-sitter-json";
16     rev = "v${version}";
17     hash = "sha256-waejAbS7MjrE7w03MPqvBRpEpqTcKc6RgKCVSYaDV1Y=";
18   };
20   build-system = [
21     setuptools
22   ];
24   optional-dependencies = {
25     core = [
26       tree-sitter
27     ];
28   };
30   # There are no tests
31   doCheck = false;
32   pythonImportsCheck = [ "tree_sitter_json" ];
34   meta = with lib; {
35     description = "JSON grammar for tree-sitter";
36     homepage = "https://github.com/tree-sitter/tree-sitter-json";
37     license = licenses.mit;
38     maintainers = with maintainers; [ doronbehar ];
39   };