cmake-language-server: fix test error on macOS
This should fix Hydra's Darwin test failures for this package. See https://github.com/regen100/cmake-language-server/pull/24
This commit is contained in:
parent
16a63d0207
commit
1f67443319
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, buildPythonApplication, fetchFromGitHub
|
{ stdenv, buildPythonApplication, fetchFromGitHub
|
||||||
, poetry, pygls, pyparsing
|
, poetry, pygls, pyparsing
|
||||||
, cmake, pytest, pytest-datadir
|
, cmake, pytest, pytest-datadir
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
|
@ -15,6 +16,12 @@ buildPythonApplication rec {
|
||||||
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
|
sha256 = "0vz7bjxkk0phjhz3h9kj6yr7wnk3g7lqmkqraa0kw12mzcfck837";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# can be removed after v0.1.2
|
||||||
|
patches = stdenv.lib.optional stdenv.isDarwin (fetchpatch {
|
||||||
|
url = "https://github.com/regen100/cmake-language-server/pull/24.patch";
|
||||||
|
sha256 = "1id8wpmyc7djyqasb5g9z9i3jipcdb4sirn4cpx2v8xmdn9khdnz";
|
||||||
|
});
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'pygls = "^0.8.1"' 'pygls = "^0.9.0"'
|
--replace 'pygls = "^0.8.1"' 'pygls = "^0.9.0"'
|
||||||
|
|
Loading…
Reference in New Issue