mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 22:44:56 +00:00
python310Packages.python-lsp-server: switch to pythonRelaxDepsHook
This commit is contained in:
parent
760f23adeb
commit
6919ac80f2
@ -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
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user