mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-09 20:16:41 -04:00
13 lines
393 B
Nix
13 lines
393 B
Nix
![]() |
{ pep508, ... }:
|
||
|
|
||
|
{
|
||
|
/* Parse PEP-518 `build-system.requires` from pyproject.toml.
|
||
|
Type: readPyproject :: AttrSet -> list
|
||
|
|
||
|
Example:
|
||
|
# parseBuildSystems (lib.importTOML ./pyproject.toml)
|
||
|
[ ] # List of parsed PEP-508 strings as returned by `lib.pep508.parseString`.
|
||
|
*/
|
||
|
parseBuildSystems = pyproject: map pep508.parseString (pyproject.build-system.requires or [ ]);
|
||
|
}
|