Breaking changes announcement for unstable

In a few weeks we will restore the runtime dependency validation of python packages, that use the pypaInstallHook, which is used for the pyproject format.

It will complain about version constraint mismatches

Checking runtime dependencies for sphinx_prompt-1.6.0-py3-none-any.whl
  - sphinx==7.0.0 not satisfied by version 7.2.6
  - docutils==0.19 not satisfied by version 0.20.1
  - pygments==2.15.1 not satisfied by version 2.16.1

as well as missing dependencies

Checking runtime dependencies for pysml-0.1.1-py3-none-any.whl
  - aiohttp not installed

Both cases will be considered a hard failure, and indicate further work is needed to get a package to run correctly.

For too tight version constraints I recommend using pythonRelaxDepsHook, which lifts constraints from the built wheel for the package names given in the pythonRelaxDeps list.

The work is currently happening in the following PR, and unfortunately we’ve justed missed the latest staging cycle, so it will be in the next one after that.

https://github.com/NixOS/nixpkgs/pull/270457

11 Likes