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:
- Using python38 or later
- Patching the Python37’s zip module to avoid raising ValueError, here: https://github.com/python/cpython/blob/d5650a1738fe34f6e1db4af5f4c4edb7cae90a36/Lib/zipfile.py#L357, like python38 did: https://github.com/python/cpython/blob/7c5b01b5101923fc38274c491bd55239ee9f0416/Lib/zipfile.py#L527
- Avoid using the dependencies offered as a zip for your platform
- Using a platform for which non-zip installers are offered