pythonPackages.pip: make package reproducible

This fixes #201146 by removing the vendored Windows PE binaries.

(cherry picked from commit b87d7fa3f9)
This commit is contained in:
rnhmjoj
2022-11-23 15:46:00 +01:00
committed by github-actions[bot]
parent 24962fccc4
commit 9193d840eb

View File

@@ -27,6 +27,12 @@ buildPythonPackage rec {
nativeBuildInputs = [ bootstrapped-pip ];
postPatch = ''
# Remove vendored Windows PE binaries
# Note: These are unused but make the package unreproducible.
find -type f -name '*.exe' -delete
'';
# pip detects that we already have bootstrapped_pip "installed", so we need
# to force it a little.
pipInstallFlags = [ "--ignore-installed" ];