mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
always include setuptools in buildInputs
When cross compiling setuptools isn't available in the build environment but needed for eg. python setup.py egg_info.
This commit is contained in:
parent
c72860f2bd
commit
4beb2b2941
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ pythonPackages.callPackage
|
|||
, ...
|
||||
}@args:
|
||||
let
|
||||
inherit (pkgs) stdenv;
|
||||
inherit (poetryLib) isCompatible getManyLinuxDeps fetchFromPypi moduleName;
|
||||
|
||||
inherit (import ./pep425.nix {
|
||||
|
@ -113,9 +114,10 @@ pythonPackages.callPackage
|
|||
|
||||
buildInputs = (
|
||||
baseBuildInputs
|
||||
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) pythonPackages.setuptools
|
||||
++ lib.optional (!isSource) (getManyLinuxDeps fileInfo.name).pkg
|
||||
++ lib.optional isLocal buildSystemPkgs
|
||||
++ lib.optional (!__isBootstrap) [ pythonPackages.poetry ]
|
||||
++ lib.optional (!__isBootstrap) pythonPackages.poetry
|
||||
);
|
||||
|
||||
propagatedBuildInputs =
|
||||
|
|
Loading…
Add table
Reference in a new issue