python3Packages: format with nixfmt
This commit is contained in:
@@ -1,46 +1,52 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, python
|
||||
, build
|
||||
, flit-core
|
||||
, installer
|
||||
, packaging
|
||||
, pyproject-hooks
|
||||
, tomli
|
||||
, makeWrapper
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python,
|
||||
build,
|
||||
flit-core,
|
||||
installer,
|
||||
packaging,
|
||||
pyproject-hooks,
|
||||
tomli,
|
||||
makeWrapper,
|
||||
}:
|
||||
let
|
||||
buildBootstrapPythonModule = basePackage: attrs: stdenv.mkDerivation ({
|
||||
pname = "${python.libPrefix}-bootstrap-${basePackage.pname}";
|
||||
inherit (basePackage) version src meta;
|
||||
buildBootstrapPythonModule =
|
||||
basePackage: attrs:
|
||||
stdenv.mkDerivation (
|
||||
{
|
||||
pname = "${python.libPrefix}-bootstrap-${basePackage.pname}";
|
||||
inherit (basePackage) version src meta;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
PYTHONPATH="${flit-core}/${python.sitePackages}" \
|
||||
${python.interpreter} -m flit_core.wheel
|
||||
PYTHONPATH="${flit-core}/${python.sitePackages}" \
|
||||
${python.interpreter} -m flit_core.wheel
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
PYTHONPATH="${installer}/${python.sitePackages}" \
|
||||
${python.interpreter} -m installer \
|
||||
--destdir "$out" --prefix "" dist/*.whl
|
||||
PYTHONPATH="${installer}/${python.sitePackages}" \
|
||||
${python.interpreter} -m installer \
|
||||
--destdir "$out" --prefix "" dist/*.whl
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
} // attrs);
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
// attrs
|
||||
);
|
||||
|
||||
bootstrap-packaging = buildBootstrapPythonModule packaging {};
|
||||
bootstrap-packaging = buildBootstrapPythonModule packaging { };
|
||||
|
||||
bootstrap-pyproject-hooks = buildBootstrapPythonModule pyproject-hooks {};
|
||||
bootstrap-pyproject-hooks = buildBootstrapPythonModule pyproject-hooks { };
|
||||
|
||||
bootstrap-tomli = buildBootstrapPythonModule tomli {};
|
||||
bootstrap-tomli = buildBootstrapPythonModule tomli { };
|
||||
|
||||
sitePkgs = python.sitePackages;
|
||||
in
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, python
|
||||
, flit-core
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python,
|
||||
flit-core,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "${python.libPrefix}-bootstrap-${flit-core.pname}";
|
||||
inherit (flit-core) version src patches meta;
|
||||
inherit (flit-core)
|
||||
version
|
||||
src
|
||||
patches
|
||||
meta
|
||||
;
|
||||
|
||||
sourceRoot = "${src.name}/flit_core";
|
||||
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, python
|
||||
, flit-core
|
||||
, installer
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python,
|
||||
flit-core,
|
||||
installer,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "${python.libPrefix}-bootstrap-${installer.pname}";
|
||||
inherit (installer) version src patches meta;
|
||||
inherit (installer)
|
||||
version
|
||||
src
|
||||
patches
|
||||
meta
|
||||
;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ stdenv
|
||||
, python
|
||||
, flit-core
|
||||
, installer
|
||||
, packaging
|
||||
{
|
||||
stdenv,
|
||||
python,
|
||||
flit-core,
|
||||
installer,
|
||||
packaging,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
Reference in New Issue
Block a user