summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bootstrap
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-07-26 00:56:50 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2023-08-20 10:59:46 +0200
commit5d2290bb58f0252ad6ea29723827d40765099c44 (patch)
treef768cdbfb6774aa9076353b43635789b98e770ec /pkgs/development/python-modules/bootstrap
parentMerge #248913: libGLU: Enable build parallelism (diff)
downloadnixpkgs-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.nix29
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
+ '';
+}