nixpkgs/pkgs/development/interpreters/python/hooks
Frederik Rietdijk 33d12e5f0b pythonPackages: ensure all derivations provide python modules
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.
2022-10-27 10:03:16 +02:00
..
conda-install-hook.sh buildPythonPackage: add support for conda 2021-05-28 14:31:40 +02:00
conda-unpack-hook.sh buildPythonPackage: add support for conda 2021-05-28 14:31:40 +02:00
default.nix pythonPackages: ensure all derivations provide python modules 2022-10-27 10:03:16 +02:00
egg-build-hook.sh
egg-install-hook.sh
egg-unpack-hook.sh
flit-build-hook.sh
pip-build-hook.sh pythonPackages.buildPythonPackage: enable verbose output with pyproject 2021-05-19 12:16:15 -07:00
pip-install-hook.sh pythonPackages.pip-install-hook: remove --build option 2020-12-01 14:44:26 +01:00
pytest-check-hook.sh pytestCheckHook: improve disabledTestPaths whitespace handling 2021-05-14 21:59:55 -07:00
python-catch-conflicts-hook.sh Revert "Revert "buildPython*: wrap setuptools in hook for catching conflicts"" 2022-09-20 09:49:27 +02:00
python-imports-check-hook.sh python: execute pythonImportsCheckPhase in subshell 2020-02-19 22:30:50 -08:00
python-namespaces-hook.sh python.pkgs.pythonNamespacesHook: check parent directory exists before removing child 2021-12-02 17:38:40 -08:00
python-output-dist-hook.sh Revert "Revert "buildPython*: store dist (wheel/sdist) in dist output"" 2022-09-20 09:49:55 +02:00
python-recompile-bytecode-hook.sh buildPythonPackage: recompile bytecode for reproducibility 2020-06-13 10:36:28 +02:00
python-relax-deps-hook.sh pythonPackages.pythonRelaxDepsHook: cleanup unpacked folder 2022-10-04 15:34:46 +02:00
python-remove-bin-bytecode-hook.sh pythonRemoveBinBytecodeHook: fix explanation 2020-06-13 10:20:14 +02:00
python-remove-tests-dir-hook.sh python: pythonRemoveTestsDirHook removes /test 2021-06-21 16:48:39 -07:00
setuptools-build-hook.sh python: use whitespace to split possible existing options 2022-04-24 14:28:26 +02:00
setuptools-check-hook.sh
sphinx-hook.sh python3Packages.sphinxHook: run install phase in predist 2022-08-24 23:02:27 +02:00
unittest-check-hook.sh pythonPackages.unittestCheckHook: init 2022-08-13 14:09:43 -04:00
venv-shell-hook.sh python3Packages.venvShellHook: add postVenvCreation (#87850) 2020-05-16 09:34:11 +02:00
wheel-unpack-hook.sh