cmake-language-server: 0.1.7 -> 0.1.8

This commit is contained in:
Konstantin Alekseev 2023-10-24 10:09:22 +03:00
parent f12242c3d0
commit a1b998f8fc

View File

@ -4,32 +4,33 @@
, cmake-format
, pygls
, cmake
, pdm-pep517
, pdm-backend
, pytest-datadir
, pytestCheckHook
, pythonOlder
}:
buildPythonApplication rec {
pname = "cmake-language-server";
version = "0.1.7";
version = "0.1.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "regen100";
repo = "cmake-language-server";
rev = "refs/tags/v${version}";
hash = "sha256-ExEAi47hxxEJeoT3FCwpRwJrf3URnI47/5FDL7fS5sY=";
hash = "sha256-7AlF+FqhZR+6lLsR1dxAGHd/GU+mB3ojYLDXVm7Il4M=";
};
PDM_PEP517_SCM_VERSION = version;
patches = [
# Test timeouts occasionally cause the build to fail
./disable-test-timeouts.patch
];
nativeBuildInputs = [
pdm-pep517
pdm-backend
];
propagatedBuildInputs = [
@ -44,6 +45,16 @@ buildPythonApplication rec {
pytestCheckHook
];
# version.py generated by pdm, no idea why it's not present in test phase
# https://github.com/regen100/cmake-language-server/blob/68bbc8187b6110a75f498647af7c44df790ffa87/pyproject.toml#L35-L36
preCheck = ''
echo "__version__ = \"$PDM_BUILD_SCM_VERSION\"" > cmake_language_server/version.py
'';
postCheck = ''
rm cmake_language_server/version.py
'';
dontUseCmakeConfigure = true;
pythonImportsCheck = [