Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / bootstrap / installer / default.nix
blobb569e7fa6dc80cee4336fdf9580b5c8fd01e5cbf
1 { lib
2 , stdenv
3 , python
4 , flit-core
5 , installer
6 }:
8 stdenv.mkDerivation {
9   pname = "${python.libPrefix}-bootstrap-${installer.pname}";
10   inherit (installer) version src meta;
12   buildPhase = ''
13     runHook preBuild
15     PYTHONPATH="${flit-core}/${python.sitePackages}" \
16       ${python.interpreter} -m flit_core.wheel
18     runHook postBuild
19   '';
21   installPhase = ''
22     runHook preInstall
24     PYTHONPATH=src ${python.interpreter} -m installer \
25       --destdir "$out" --prefix "" dist/installer-*.whl
27     runHook postInstall
28   '';