Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, tree-sitter 6}: 7 8buildPythonPackage rec { 9 pname = "tree-sitter-html"; 10 version = "0.20.3"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "tree-sitter"; 15 repo = "tree-sitter-html"; 16 rev = "v${version}"; 17 hash = "sha256-sHy3fVWemJod18HCQ8zBC/LpeCCPH0nzhI1wrkCg8nw="; 18 }; 19 20 build-system = [ 21 setuptools 22 ]; 23 24 passthru.optional-dependencies = { 25 core = [ 26 tree-sitter 27 ]; 28 }; 29 30 # There are no tests 31 doCheck = false; 32 pythonImportsCheck = [ "tree_sitter_html" ]; 33 34 meta = with lib; { 35 description = "HTML grammar for tree-sitter"; 36 homepage = "https://github.com/tree-sitter/tree-sitter-html"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ doronbehar ]; 39 }; 40}