mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
Improve error message in case of a missing suitable source/wheel for a dependency
This commit is contained in:
parent
203fb43910
commit
8ca15bdb12
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ pythonPackages.callPackage
|
|||
sourceDist = builtins.filter isSdist fileCandidates;
|
||||
eggs = builtins.filter isEgg fileCandidates;
|
||||
entries = (if preferWheel then binaryDist ++ sourceDist else sourceDist ++ binaryDist) ++ eggs;
|
||||
lockFileEntry = builtins.head entries;
|
||||
lockFileEntry = (
|
||||
if lib.length entries > 0 then builtins.head entries
|
||||
else throw "Missing suitable source/wheel file entry for ${name}"
|
||||
);
|
||||
_isEgg = isEgg lockFileEntry;
|
||||
in
|
||||
rec {
|
||||
|
|
Loading…
Add table
Reference in a new issue