pythonPackages.pip: make package reproducible

This fixes #201146 by removing the vendored Windows PE binaries.
This commit is contained in:
rnhmjoj 2022-11-23 15:46:00 +01:00 committed by Frederik Rietdijk
parent 442fcc94e1
commit 0cf7fb8f05

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" ];