mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -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:
|
}@args:
|
||||||
let
|
let
|
||||||
|
inherit (pkgs) stdenv;
|
||||||
inherit (poetryLib) isCompatible getManyLinuxDeps fetchFromPypi moduleName;
|
inherit (poetryLib) isCompatible getManyLinuxDeps fetchFromPypi moduleName;
|
||||||
|
|
||||||
inherit (import ./pep425.nix {
|
inherit (import ./pep425.nix {
|
||||||
|
@ -113,9 +114,10 @@ pythonPackages.callPackage
|
||||||
|
|
||||||
buildInputs = (
|
buildInputs = (
|
||||||
baseBuildInputs
|
baseBuildInputs
|
||||||
|
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) pythonPackages.setuptools
|
||||||
++ lib.optional (!isSource) (getManyLinuxDeps fileInfo.name).pkg
|
++ lib.optional (!isSource) (getManyLinuxDeps fileInfo.name).pkg
|
||||||
++ lib.optional isLocal buildSystemPkgs
|
++ lib.optional isLocal buildSystemPkgs
|
||||||
++ lib.optional (!__isBootstrap) [ pythonPackages.poetry ]
|
++ lib.optional (!__isBootstrap) pythonPackages.poetry
|
||||||
);
|
);
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
|
|
Loading…
Add table
Reference in a new issue