python310Packages.tree-sitter: init at 0.20.1
This commit is contained in:
parent
1b63409492
commit
d505646da5
41
pkgs/development/python-modules/tree-sitter/default.nix
Normal file
41
pkgs/development/python-modules/tree-sitter/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue