1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "tree-sitter"; 12 version = "0.25.2"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-/kPBWFVdpGcjsotS4FitREGVr9HbPKdyDFmiVFROnCA="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 pythonImportsCheck = [ "tree_sitter" ]; 23 24 meta = { 25 description = "Python bindings to the Tree-sitter parsing library"; 26 homepage = "https://github.com/tree-sitter/py-tree-sitter"; 27 changelog = "https://github.com/tree-sitter/py-tree-sitter/releases/tag/v${version}"; 28 license = lib.licenses.mit; 29 maintainers = with lib.maintainers; [ fab ]; 30 }; 31}