···142142143143The `buildPythonPackage` mainly does four things:
144144145145-* In the [`buildPhase`](#build-phase), it calls `${python.pythonForBuild.interpreter} setup.py bdist_wheel` to
145145+* In the [`buildPhase`](#build-phase), it calls `${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel` to
146146 build a wheel binary zipfile.
147147* In the [`installPhase`](#ssec-install-phase), it installs the wheel file using `pip install *.whl`.
148148* In the [`postFixup`](#var-stdenv-postFixup) phase, the `wrapPythonPrograms` bash function is called to
···16821682As workaround install it as an extra `preInstall` step:
1683168316841684```shell
16851685-${python.pythonForBuild.interpreter} setup.py install_data --install-dir=$out --root=$out
16851685+${python.pythonOnBuildForHost.interpreter} setup.py install_data --install-dir=$out --root=$out
16861686sed -i '/ = data\_files/d' setup.py
16871687```
16881688
+1-1
nixos/modules/programs/fish.nix
···268268 ''
269269 mkdir -p $out
270270 if [ -d $package/share/man ]; then
271271- find $package/share/man -type f | xargs ${pkgs.python3.pythonForBuild.interpreter} ${patchedGenerator}/create_manpage_completions.py --directory $out >/dev/null
271271+ find $package/share/man -type f | xargs ${pkgs.python3.pythonOnBuildForHost.interpreter} ${patchedGenerator}/create_manpage_completions.py --directory $out >/dev/null
272272 fi
273273 '';
274274 in
···11-{ pythonForBuild, runCommand }: {
11+{ pythonOnBuildForHost, runCommand }: {
22 dont-propagate-conflicting-deps = let
33 # customize a package so that its store paths differs
44 mkConflict = pkg: pkg.overrideAttrs { some_modification = true; };
···1616 '';
1717 in
1818 # this build must never triger conflicts
1919- pythonForBuild.pkgs.buildPythonPackage {
1919+ pythonOnBuildForHost.pkgs.buildPythonPackage {
2020 pname = "dont-propagate-conflicting-deps";
2121 version = "0.0.0";
2222 src = projectSource;
···2424 propagatedBuildInputs = [
2525 # At least one dependency of `build` should be included here to
2626 # keep the test meaningful
2727- (mkConflict pythonForBuild.pkgs.tomli)
2727+ (mkConflict pythonOnBuildForHost.pkgs.tomli)
2828 # setuptools is also needed to build the example project
2929- pythonForBuild.pkgs.setuptools
2929+ pythonOnBuildForHost.pkgs.setuptools
3030 ];
3131 };
3232}
···3737 '';
38383939 preBuild = ''
4040- ${python.pythonForBuild.interpreter} setup.py build_cython
4040+ ${python.pythonOnBuildForHost.interpreter} setup.py build_cython
4141 '';
42424343 # On Darwin, the test requires macFUSE to be installed outside of Nix.
···4646 # This is only used for figuring out what version of Python is in
4747 # use, and related stuff like figuring out what the install prefix
4848 # should be, but it does need to be able to execute Python code.
4949- "-Dpython=${python.pythonForBuild.interpreter}"
4949+ "-Dpython=${python.pythonOnBuildForHost.interpreter}"
5050 ];
51515252 meta = with lib; {
···3030 # for the package to function. Therefore override of buildPhase was
3131 # necessary.
3232 buildPhase = ''
3333- ${python.pythonForBuild.interpreter} setup.py build_ext --inplace
3434- ${python.pythonForBuild.interpreter} setup.py bdist_wheel
3333+ ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
3434+ ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel
3535 '';
36363737 nativeCheckInputs = [
+1-1
pkgs/development/python-modules/pygobject/3.nix
···5757 # This is only used for figuring out what version of Python is in
5858 # use, and related stuff like figuring out what the install prefix
5959 # should be, but it does need to be able to execute Python code.
6060- "-Dpython=${python.pythonForBuild.interpreter}"
6060+ "-Dpython=${python.pythonOnBuildForHost.interpreter}"
6161 ];
62626363 passthru = {
···4242 # This is only used for figuring out what version of Python is in
4343 # use, and related stuff like figuring out what the install prefix
4444 # should be, but it does need to be able to execute Python code.
4545- "-Dpython=${python.pythonForBuild.interpreter}"
4545+ "-Dpython=${python.pythonOnBuildForHost.interpreter}"
4646 ];
47474848 meta = with lib; {
···2929 ];
30303131 buildPhase = ''
3232- ${python.pythonForBuild.interpreter} bootstrap.py
3333- ${python.pythonForBuild.interpreter} setup.py sdist --formats=gztar
3232+ ${python.pythonOnBuildForHost.interpreter} bootstrap.py
3333+ ${python.pythonOnBuildForHost.interpreter} setup.py sdist --formats=gztar
34343535 # Here we untar the sdist and retar it in order to control the timestamps
3636 # of all the files included