Merge pull request #224670 from Artturin/distlibremove

python310Packages.distlib: remove unnecessary and unreproducible exe's
This commit is contained in:
Arnout Engelen 2023-04-04 19:48:04 +02:00 committed by GitHub
commit 56deed756a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools
@ -18,6 +19,10 @@ buildPythonPackage rec {
setuptools
];
postFixup = lib.optionalString (!stdenv.targetPlatform.isWindows) ''
find $out -name '*.exe' -delete
'';
pythonImportsCheck = [
"distlib"
"distlib.database"
@ -39,4 +44,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ lnl7 ];
};
}