mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
33d12e5f0b
This adds a test to ensure no new uses of `buildPythonApplication` can be added to `python-packages.nix`. Python packages can be grouped into two groups: 1) applications and 2) packages providing importable modules. In `python-packages.nix` we only want to have 2). 1) should be in the top-level package set. To achieve this, all setup hooks need to be marked as being a setup hook. For the setup hooks in the Python packages set this is done by creating a new builder, `makePythonHook`. Because there were issues with splicing, the file importing all the hooks is converted to an extension. All non-packages were moved out of `python-packages.nix` into `python-packages-base.nix`. The `keep` argument to `makeScopeWithSplicing was cleaned up as well; there is no need to keep this one manually in sync reducing the risk of breaking cross-compilation. |
||
---|---|---|
.. | ||
conda-install-hook.sh | ||
conda-unpack-hook.sh | ||
default.nix | ||
egg-build-hook.sh | ||
egg-install-hook.sh | ||
egg-unpack-hook.sh | ||
flit-build-hook.sh | ||
pip-build-hook.sh | ||
pip-install-hook.sh | ||
pytest-check-hook.sh | ||
python-catch-conflicts-hook.sh | ||
python-imports-check-hook.sh | ||
python-namespaces-hook.sh | ||
python-output-dist-hook.sh | ||
python-recompile-bytecode-hook.sh | ||
python-relax-deps-hook.sh | ||
python-remove-bin-bytecode-hook.sh | ||
python-remove-tests-dir-hook.sh | ||
setuptools-build-hook.sh | ||
setuptools-check-hook.sh | ||
sphinx-hook.sh | ||
unittest-check-hook.sh | ||
venv-shell-hook.sh | ||
wheel-unpack-hook.sh |