Use build packages in setup hook

https://github.com/NixOS/nixpkgs/pull/104201 broke this.
This commit is contained in:
adisbladis 2020-11-26 20:28:09 +01:00
parent 4523826243
commit 98e0220502
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 2 additions and 5 deletions

View file

@ -1,11 +1,11 @@
{ python
, callPackage
, makeSetupHook
, yj
, wheel
, pip
}:
let
callPackage = python.pythonForBuild.pkgs.callPackage;
pythonInterpreter = python.pythonForBuild.interpreter;
pythonSitePackages = python.sitePackages;
in

View file

@ -92,10 +92,7 @@ pythonPackages.callPackage
"setuptools-scm"
"toml" # Toml is an extra for setuptools-scm
];
baseBuildInputs =
lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm
++ lib.optional (! lib.elem name [ "pip" "setuptools" "wheel" ]) pythonPackages.wheel
;
baseBuildInputs = lib.optional (! lib.elem name skipSetupToolsSCM) pythonPackages.setuptools-scm;
format = if isLocal || isGit || isUrl then "pyproject" else fileInfo.format;
in
buildPythonPackage {