Fix wheel builds

This commit is contained in:
adisbladis 2020-11-26 14:46:51 +01:00
parent f0eb99280e
commit ba41e216a6
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -2,9 +2,7 @@
let
drv = poetry2nix.mkPoetryApplication {
python = python37;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
src = lib.cleanSource ./.;
projectDir = ./.;
};
in
runCommandNoCC "egg-test"