2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-generate,
|
|
|
|
setuptools-scm,
|
|
|
|
colorama,
|
|
|
|
jinja2,
|
|
|
|
jsonschema,
|
|
|
|
pygls,
|
|
|
|
tree-sitter,
|
|
|
|
pytestCheckHook,
|
2024-06-20 14:57:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lsp-tree-sitter";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.0.16";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neomutt";
|
|
|
|
repo = "lsp-tree-sitter";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-nRzyVZFgb08M0I+xmhuX1LDwPsghlBLdZ2Ou8stKzk0=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools-generate
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
colorama
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
pygls
|
2024-09-19 14:19:46 +00:00
|
|
|
tree-sitter
|
2024-06-20 14:57:18 +00:00
|
|
|
];
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "lsp_tree_sitter" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to create language servers";
|
|
|
|
homepage = "https://github.com/neomutt/lsp-tree-sitter";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|