Merge pull request #161462 from siraben/py-tree-sitter

python3Packages.py-tree-sitter: init at unstable-2022-02-08
This commit is contained in:
Ben Siraphob 2022-08-06 23:14:28 -07:00 committed by GitHub
commit d2a4e79a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "py-tree-sitter";
version = "unstable-2022-02-08";
format = "pyproject";
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "py-tree-sitter";
rev = "9c8261d36e55d9e4a6543dc9e570bfd7911ed7bf";
sha256 = "sha256-YDe9m85LIPNumo9mrhMMotUspq/8B3t5kt2ScMJI+hY=";
fetchSubmodules = true;
};
pythonImportsCheck = [ "tree_sitter" ];
meta = with lib; {
homepage = "https://github.com/tree-sitter/py-tree-sitter";
description = "Python bindings for tree-sitter";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}

View File

@ -7115,6 +7115,8 @@ in {
py-tes = callPackage ../development/python-modules/py-tes { };
py-tree-sitter = callPackage ../development/python-modules/py-tree-sitter { };
py-ubjson = callPackage ../development/python-modules/py-ubjson { };
py-zabbix = callPackage ../development/python-modules/py-zabbix { };