def mk_package(contents):
package = contents.get('<STR_LIT>', None)<EOL>description = contents.get('<STR_LIT:description>', None)<EOL>include = contents.get('<STR_LIT>', [])<EOL>definitions = contents.get('<STR_LIT>', [])<EOL>resolved = [mk_definition(defn) for defn in definitions]<EOL>return sbp.PackageSpecification(identifier=package,<EOL>description=description,<EOL>includes=include,<EOL>definitions=resolved,<EOL>render_source=contents.get('<STR_LIT>', True),<EOL>stable=contents.get('<STR_LIT>', False),<EOL>public=contents.get('<STR_LIT>', True))<EOL>
Instantiates a package specification from a parsed "AST" of a
    package.

    Parameters
    ----------
    contents : dict

    Returns
    ----------
    PackageSpecification