python3.pkgs.bootstrap.flit-core: init at 3.8.0

Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
Theodore Ni
2023-08-20 10:59:46 +02:00
committed by Frederik Rietdijk
co-authored by K900
parent 9bc7f06a91
commit 5d2290bb58
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,29 @@
{ lib
, stdenv
, python
, flit-core
}:
stdenv.mkDerivation {
pname = "${python.libPrefix}-bootstrap-${flit-core.pname}";
inherit (flit-core) version src patches meta;
sourceRoot = "source/flit_core";
buildPhase = ''
runHook preBuild
${python.interpreter} -m flit_core.wheel
runHook postBuild
'';
installPhase = ''
runHook preInstall
${python.interpreter} bootstrap_install.py dist/flit_core-*.whl \
--install-root "$out" --installdir "/${python.sitePackages}"
runHook postInstall
'';
}