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