python310Packages.tree-sitter: init at 0.20.1

This commit is contained in:
Fabian Affolter 2023-03-27 21:09:47 +02:00
parent 1b63409492
commit d505646da5
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "tree-sitter";
version = "0.20.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "tree_sitter";
inherit version;
hash = "sha256-6T8ILFRdZkm8+11oHtJV6wBKbOIpiJcaEo9AaS/uxg0=";
};
nativeBuildInputs = [
setuptools
wheel
];
# PyPI tarball doesn't contains tests and source has additional requirements
doCheck = false;
pythonImportsCheck = [
"tree_sitter"
];
meta = with lib; {
description = "Python bindings to the Tree-sitter parsing library";
homepage = "https://github.com/tree-sitter/py-tree-sitter";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -11871,6 +11871,8 @@ self: super: with self; {
trectools = callPackage ../development/python-modules/trectools { };
tree-sitter = callPackage ../development/python-modules/tree-sitter { };
treelog = callPackage ../development/python-modules/treelog { };
treeo = callPackage ../development/python-modules/treeo { };