Merge pull request #148403 from elohmeier/py2-flake8

writers.makePythonWriter: disable flake8 checks for Python 2

authored by Lassulus and committed by GitHub 46839e36 71239df3

+4 -2
+2 -2
pkgs/build-support/writers/default.nix
··· 240 240 then "${python}/bin/python" 241 241 else "${python.withPackages (ps: libraries)}/bin/python" 242 242 ; 243 - check = writeDash "python2check.sh" '' 243 + check = optionalString python.isPy3k (writeDash "pythoncheck.sh" '' 244 244 exec ${pythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1" 245 - ''; 245 + ''); 246 246 } name; 247 247 248 248 # writePython2 takes a name an attributeset with libraries and some python2 sourcecode and
+2
pkgs/development/python-modules/flake8/default.nix
··· 51 51 pytestCheckHook 52 52 ]; 53 53 54 + disabled = pythonOlder "3.6"; 55 + 54 56 meta = with lib; { 55 57 description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe."; 56 58 homepage = "https://github.com/pycqa/flake8";