python3.pkgs.bootstrap.flit-core: init at 3.8.0
Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
committed by
Frederik Rietdijk
co-authored by
K900
parent
9bc7f06a91
commit
5d2290bb58
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user