pythonPackages.bootstrapped-pip: do not assume pip has a postPatch field

This was breaking poetry2nix which passed `pip` without any `postPatch`
field, presumbly from a `poetry.lock`-induced dependency tree.
This commit is contained in:
Raito Bezarius 2022-12-13 13:55:42 +01:00
parent c9f537cf9b
commit e3aea0cfba

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
postPatch = ''
mkdir -p $out/bin
'' + pip.postPatch;
'' + (pip.postPatch or ""); # `pip` does not necessarily have a `postPatch` field.
nativeBuildInputs = [ makeWrapper unzip ];
buildInputs = [ python ];