3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.python-language-server: relax some dependency versions

This commit is contained in:
Eduardo Sánchez Muñoz 2021-04-27 18:18:26 +02:00
parent 5092d5c7a7
commit 458914e06d

View file

@ -30,6 +30,13 @@ buildPythonPackage rec {
sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q";
};
postPatch = ''
# Reading the changelog I don't expect an API break in pycodestyle and pyflakes
substituteInPlace setup.py \
--replace "pycodestyle>=2.6.0,<2.7.0" "pycodestyle>=2.6.0,<2.8.0" \
--replace "pyflakes>=2.2.0,<2.3.0" "pyflakes>=2.2.0,<2.4.0"
'';
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ]
++ lib.optional (withProvider "autopep8") autopep8
++ lib.optional (withProvider "mccabe") mccabe