writers.makePythonWriter: drop flake8 checks for Python 2 scripts
commit10c725dc6bc28859870fd7c54d0d6399fcaecd7c
authorEnno Richter <enno@nerdworks.de>
dateFri 3 Dec 2021, 10:53 (5 years ago)
parent138c3b5
pkgs/build-support/writers/default.nix+2−2
@@ -240,9 +240,9 @@ rec {
240240 then "${python}/bin/python"
241241 else "${python.withPackages (ps: libraries)}/bin/python"
242242 ;
243− check = writeDash "python2check.sh" ''
243+ check = optionalString python.isPy3k (writeDash "pythoncheck.sh" ''
244244 exec ${pythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"
245− '';
245+ '');
246246 } name;
247247
248248 # writePython2 takes a name an attributeset with libraries and some python2 sourcecode and