lol
1{ lib
2, buildPythonApplication
3, fetchFromGitHub
4, poetry
5, pygls
6, pyparsing
7, cmake
8, pytest-datadir
9, pytestCheckHook
10}:
11
12buildPythonApplication rec {
13 pname = "cmake-language-server";
14 version = "0.1.3";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "regen100";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-eZBnygEYjLzk29tvLGg1JdhCECc5x2MewHRSChMuCjo=";
22 };
23
24 patches = [
25 # Test timeouts occasionally cause the build to fail
26 ./disable-test-timeouts.patch
27 ];
28
29 nativeBuildInputs = [ poetry ];
30 propagatedBuildInputs = [ pygls pyparsing ];
31
32 checkInputs = [ cmake pytest-datadir pytestCheckHook ];
33 dontUseCmakeConfigure = true;
34 pythonImportsCheck = [ "cmake_language_server" ];
35
36 meta = with lib; {
37 description = "CMake LSP Implementation";
38 homepage = "https://github.com/regen100/cmake-language-server";
39 license = licenses.mit;
40 maintainers = with maintainers; [ kira-bruneau ];
41 };
42}