license

This class represents the LICENSE ebuild variable as per PMS 7.3.

class pms_utils.ebuild.license(self: pms_utils.ebuild.license, expr: str)

Constructs a new license object from the input expression.

Raises:

ValueError – The expression is invalid.

__iter__(self: pms_utils.ebuild.license) Iterator[pms_utils.ebuild.license_elem | pms_utils.ebuild.license]
property conditional: pms_utils.depend.UseConditional | pms_utils.depend.GroupHeaderOp | None
property nodes: list[pms_utils.ebuild.license_elem | pms_utils.ebuild.license]