build.packages.hooks

build.packages.hooks.pyprojectConfigureHook

Undo any $PYTHONPATH changes done by nixpkgs Python infrastructure dependency propagation.

Used internally by pyprojectHook.

build.packages.hooks.pyprojectBuildHook

Build a pyproject.toml/setuptools project.

Used internally by pyprojectHook.

build.packages.hooks.pyprojectWheelDistHook

Symlink prebuilt wheel sources.

Used internally by pyprojectWheelHook.

build.packages.hooks.pyprojectInstallHook

Install built projects from dist/*.whl.

Used internally by pyprojectHook.

build.packages.hooks.pyprojectOutputSetupHook

Create pyproject.nix setup hook in package output.

Used internally by pyprojectHook.

build.packages.hooks.pyprojectCrossShebangHook

Rewrite shebangs for cross compiled Python programs.

When cross compiling & installing a Python program the shebang gets written for the install-time Pythhon, which for cross compilation is for the build host.

This hook rewrites any shebangs pointing to the build host Python to the target host Python.

build.packages.hooks.pyprojectMakeVenvHook

Create a virtual environment from buildInputs

Used internally by mkVirtualEnv.

build.packages.hooks.pyprojectHook

Meta hook aggregating the default pyproject.toml/setup.py install behaviour and adds Python.

This is the default choice for both pyproject.toml & setuptools projects.

build.packages.hooks.pyprojectWheelHook

Hook used to build prebuilt wheels.

Use instead of pyprojectHook.