python310Packages.python-lsp-server: switch to pythonRelaxDepsHook

This commit is contained in:
Fabian Affolter 2023-01-26 11:43:50 +01:00
parent 760f23adeb
commit 6919ac80f2

View file

@ -18,6 +18,7 @@
, pylint
, pyqt5
, pytestCheckHook
, pythonRelaxDepsHook
, python-lsp-jsonrpc
, pythonOlder
, rope
@ -49,15 +50,20 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
--replace "--cov pylsp --cov test" "" \
--replace "autopep8>=1.6.0,<1.7.1" "autopep8" \
--replace "flake8>=5.0.0,<7" "flake8" \
--replace "mccabe>=0.7.0,<0.8.0" "mccabe" \
--replace "pycodestyle>=2.9.0,<2.11.0" "pycodestyle" \
--replace "pyflakes>=2.5.0,<3.1.0" "pyflakes"
--replace "--cov pylsp --cov test" ""
'';
pythonRelaxDeps = [
"autopep8"
"flake8"
"mccabe"
"pycodestyle"
"pydocstyle"
"pyflakes"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];