python3Packages.tinycss2: fix build
commitb169bfc9e2c981a46680c53343258d90be6f6d9f
authorEdmund Wu <fangkazuto@gmail.com>
dateMon 22 Jun 2020, 20:45 (6 years ago)
parent84066b0
pkgs/development/python-modules/tinycss2/default.nix+5
@@ -36,6 +36,11 @@ buildPythonPackage rec {
3636
3737 checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
3838
39+ # https://github.com/PyCQA/pycodestyle/issues/598
40+ preCheck = ''
41+ printf "[flake8]\nignore=W504,E741,E126" >> setup.cfg
42+ '';
43+
3944 meta = with lib; {
4045 description = "Low-level CSS parser for Python";
4146 homepage = "https://github.com/Kozea/tinycss2";