@@ -37,6 +37,9 @@
3737# generated binaries.
3838, makeWrapperArgs ? []
3939
40+# Skip wrapping of python programs altogether
41+, dontWrapPythonPrograms ? false
42+
4043, meta ? {}
4144
4245, passthru ? {}
@@ -69,7 +72,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"
6972 doCheck = false;
7073 doInstallCheck = doCheck;
7174
72− postFixup = ''
75+ postFixup = lib.optionalString (!dontWrapPythonPrograms) ''
7376 wrapPythonPrograms
7477 '' + lib.optionalString catchConflicts ''
7578 # Check if we have two packages with the same name in the closure and fail.