depot/third_party/nixpkgs/pkgs/development/python-modules/lsp-tree-sitter/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

49 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-generate,
setuptools-scm,
colorama,
jinja2,
jsonschema,
pygls,
tree-sitter,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "lsp-tree-sitter";
version = "0.0.16";
pyproject = true;
src = fetchFromGitHub {
owner = "neomutt";
repo = "lsp-tree-sitter";
rev = "refs/tags/${version}";
hash = "sha256-nRzyVZFgb08M0I+xmhuX1LDwPsghlBLdZ2Ou8stKzk0=";
};
build-system = [
setuptools-generate
setuptools-scm
];
dependencies = [
colorama
jinja2
jsonschema
pygls
tree-sitter
];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}