1{
2 stdenv,
3 python,
4 flit-core,
5}:
6
7stdenv.mkDerivation {
8 pname = "${python.libPrefix}-bootstrap-${flit-core.pname}";
9 inherit (flit-core)
10 version
11 src
12 patches
13 meta
14 ;
15
16 postPatch = "cd flit_core";
17
18 buildPhase = ''
19 runHook preBuild
20
21 ${python.interpreter} -m flit_core.wheel
22
23 runHook postBuild
24 '';
25
26 installPhase = ''
27 runHook preInstall
28
29 ${python.interpreter} bootstrap_install.py dist/flit_core-*.whl \
30 --install-root "$out" --installdir "/${python.sitePackages}"
31
32 runHook postInstall
33 '';
34}