mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Use build packages in setup hook
https://github.com/NixOS/nixpkgs/pull/104201 broke this.
This commit is contained in:
parent
4523826243
commit
98e0220502
2 changed files with 2 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
|||
{ python
|
||||
, callPackage
|
||||
, makeSetupHook
|
||||
, yj
|
||||
, wheel
|
||||
, pip
|
||||
}:
|
||||
let
|
||||
callPackage = python.pythonForBuild.pkgs.callPackage;
|
||||
pythonInterpreter = python.pythonForBuild.interpreter;
|
||||
pythonSitePackages = python.sitePackages;
|
||||
in
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue