From 10c725dc6bc28859870fd7c54d0d6399fcaecd7c Mon Sep 17 00:00:00 2001 From: Enno Richter Date: Fri, 3 Dec 2021 10:53:12 +0100 Subject: [PATCH] writers.makePythonWriter: drop flake8 checks for Python 2 scripts --- pkgs/build-support/writers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 4b4d4bb203e0..3797df56afa5 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -240,9 +240,9 @@ rec { then "${python}/bin/python" else "${python.withPackages (ps: libraries)}/bin/python" ; - check = writeDash "python2check.sh" '' + check = optionalString python.isPy3k (writeDash "pythoncheck.sh" '' exec ${pythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1" - ''; + ''); } name; # writePython2 takes a name an attributeset with libraries and some python2 sourcecode and