mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
e19019fe32
We have a common pattern here in nixpkgs for Python applications: when a Python package ships with either a requirements.txt or setup.py file, we generally end up having to modify its version restriction, otherwise we have build failures since we package only one specific version of each package normally. However, this end up being done in a completely ad-hoc way: some people use substituteInPlace, some others use sed, others uses patches, etc. In many cases, the code ends up being buggy, so it may work in one version and breaks on the next one. We can instead implement one standard way of doing this, and trying to be a correct as possible. So this is what this commit does: it implements a new build hook, that when called will automatically patch the wheel file. This is one of the most generic ways to patch Python dependencies, and should work in multiple cases. |
||
---|---|---|
.. | ||
catch_conflicts | ||
conda | ||
cpython | ||
hooks | ||
manylinux | ||
pypy | ||
rustpython | ||
tests | ||
update-python-libraries | ||
default.nix | ||
fetchpypi.nix | ||
mk-python-derivation.nix | ||
run_setup.py | ||
setup-hook.nix | ||
setup-hook.sh | ||
sitecustomize.py | ||
tests.nix | ||
with-packages.nix | ||
wrap-python.nix | ||
wrap.sh | ||
wrapper.nix |