Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bootstrap / packaging / default.nix
blobf8a10d4ddd121223d7b51076403cfdcb51d3e3f2
1 { stdenv
2 , python
3 , flit-core
4 , installer
5 , packaging
6 }:
8 stdenv.mkDerivation {
9   pname = "${python.libPrefix}-bootstrap-${packaging.pname}";
10   inherit (packaging) 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="${installer}/${python.sitePackages}" \
25       ${python.interpreter} -m installer \
26         --destdir "$out" --prefix "" dist/*.whl
28     runHook postInstall
29   '';