Using pip in a nix-shell: SOURCE_DATE_EPOCH not helping

When .zip installers are downloaded with Nix from PyPI they get set a 0 timestamp for reproducibility reasons. Unfortunately in Python37 the zip module cannot deal with that and raises such ValueError. A few solutions: