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