mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Check pyproject for description & homepage attrs
These don't always exist.
This commit is contained in:
parent
1b3d0349b4
commit
cd5cd15526
1 changed files with 5 additions and 2 deletions
|
@ -256,8 +256,11 @@ let
|
|||
) { inherit app; };
|
||||
};
|
||||
|
||||
meta = meta // {
|
||||
inherit (pyProject.tool.poetry) description homepage;
|
||||
meta = meta // lib.optionalAttrs (lib.hasAttr "description" pyProject.tool.poetry) {
|
||||
inherit (pyProject.tool.poetry) description;
|
||||
} // lib.optionalAttrs (lib.hasAttr "homepage" pyProject.tool.poetry) {
|
||||
inherit (pyProject.tool.poetry) homepage;
|
||||
} // {
|
||||
inherit (py.meta) platforms;
|
||||
license = getLicenseBySpdxId (pyProject.tool.poetry.license or "unknown");
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue