diff --git a/cwlgen/requirements.py b/cwlgen/requirements.py index 6f5408a..be48480 100644 --- a/cwlgen/requirements.py +++ b/cwlgen/requirements.py @@ -210,15 +210,16 @@ def parse_dict(cls, d): # } -class SoftwareRequirement(Requirement): +class +ment(Requirement): """ A list of software packages that should be configured in the environment of the defined process. Documentation: https://www.commonwl.org/v1.0/Workflow.html#SoftwareRequirement """ - def __init__(self): + def __init__(self, packages=None): Requirement.__init__(self, "SoftwareRequirement") - self.packages = [] # list[SoftwarePackage] + self.packages = packages or [] # list[SoftwarePackage] class SoftwarePackage(Serializable): """