diff options
| author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-26 00:56:50 -0700 |
|---|---|---|
| committer | Frederik Rietdijk <fridh@fridh.nl> | 2023-08-20 10:59:46 +0200 |
| commit | 5d2290bb58f0252ad6ea29723827d40765099c44 (patch) | |
| tree | f768cdbfb6774aa9076353b43635789b98e770ec /pkgs/development/python-modules/bootstrap | |
| parent | Merge #248913: libGLU: Enable build parallelism (diff) | |
| download | nixpkgs-5d2290bb58f0252ad6ea29723827d40765099c44.tar.gz | |
python3.pkgs.bootstrap.flit-core: init at 3.8.0
Co-authored-by: K900 <me@0upti.me>
Diffstat (limited to 'pkgs/development/python-modules/bootstrap')
| -rw-r--r-- | pkgs/development/python-modules/bootstrap/flit-core/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bootstrap/flit-core/default.nix b/pkgs/development/python-modules/bootstrap/flit-core/default.nix new file mode 100644 index 000000000000..ab9e52538d34 --- /dev/null +++ b/pkgs/development/python-modules/bootstrap/flit-core/default.nix @@ -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 + ''; +} |
