2021-10-04 04:53:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2022-11-29 05:20:12 +00:00
|
|
|
, poetry-core
|
2022-11-29 05:22:09 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-08-03 01:02:11 +00:00
|
|
|
, cmake-format
|
2021-10-04 04:53:33 +00:00
|
|
|
, pygls
|
|
|
|
, cmake
|
|
|
|
, pytest-datadir
|
|
|
|
, pytestCheckHook
|
2020-05-27 23:21:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cmake-language-server";
|
2022-08-04 16:52:30 +00:00
|
|
|
version = "0.1.6";
|
2020-05-27 23:21:24 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regen100";
|
|
|
|
repo = pname;
|
2022-08-03 01:02:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-08-04 16:52:30 +00:00
|
|
|
sha256 = "sha256-B7dhCQo3g2E8+fzyl1RhaYQE6TFoqoLtp9Z7sZcv5xk=";
|
2020-05-27 23:21:24 +00:00
|
|
|
};
|
|
|
|
|
2021-05-17 22:34:28 +00:00
|
|
|
patches = [
|
2021-10-04 04:53:33 +00:00
|
|
|
# Test timeouts occasionally cause the build to fail
|
2021-05-17 22:34:28 +00:00
|
|
|
./disable-test-timeouts.patch
|
|
|
|
];
|
2020-07-30 04:54:49 +00:00
|
|
|
|
2022-11-29 05:22:09 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pygls"
|
|
|
|
];
|
|
|
|
|
2022-08-03 01:02:11 +00:00
|
|
|
nativeBuildInputs = [
|
2022-11-29 05:20:12 +00:00
|
|
|
poetry-core
|
2022-11-29 05:22:09 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-08-03 01:02:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cmake-format
|
|
|
|
pygls
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
cmake
|
|
|
|
cmake-format
|
|
|
|
pytest-datadir
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-05-27 23:21:24 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
2021-10-04 04:53:33 +00:00
|
|
|
pythonImportsCheck = [ "cmake_language_server" ];
|
2020-05-27 23:21:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-27 23:21:24 +00:00
|
|
|
description = "CMake LSP Implementation";
|
2021-10-04 04:53:33 +00:00
|
|
|
homepage = "https://github.com/regen100/cmake-language-server";
|
2020-05-27 23:21:24 +00:00
|
|
|
license = licenses.mit;
|
2021-05-22 14:47:40 +00:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2020-05-27 23:21:24 +00:00
|
|
|
};
|
|
|
|
}
|