depot/third_party/nixpkgs/pkgs/development/tools/cmake-language-server/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

36 lines
924 B
Nix

{ stdenv, buildPythonApplication, fetchFromGitHub
, poetry, pygls, pyparsing
, cmake, pytest, pytest-datadir
}:
buildPythonApplication rec {
pname = "cmake-language-server";
version = "0.1.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "regen100";
repo = pname;
rev = "v${version}";
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pygls = "^0.8.1"' 'pygls = "^0.9.0"'
'';
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ pygls pyparsing ];
checkInputs = [ cmake pytest pytest-datadir ];
dontUseCmakeConfigure = true;
checkPhase = "pytest";
meta = with stdenv.lib; {
homepage = "https://github.com/regen100/cmake-language-server";
description = "CMake LSP Implementation";
license = licenses.mit;
maintainers = with maintainers; [ metadark ];
};
}