def METHOD_NAME(builder, manifest_enrollment_package, package_content):
    h = hashlib.sha256(package_content)
    installer_item_hash = h.hexdigest()
    installer_item_size = len(package_content)
    installed_size = installer_item_size * 10  # TODO: bug
    postinstall_script = (
        '#!/usr/local/munki/munki-python\n'
        'import os\n'
        '\n'
        'RECEIPTS_DIR = "/var/db/receipts/"\n'
        '\n'
        'for filename in os.listdir(RECEIPTS_DIR):\n'
        '    if filename.startswith("{}") and not filename.startswith("{}"):\n'
        '        os.unlink(os.path.join(RECEIPTS_DIR, filename))\n'
    ).format(builder.base_package_identifier, builder.package_identifier)
    return {'description': '{} package'.format(builder.name),
            'display_name': builder.name,
            'installed_size': installed_size,
            'installer_item_hash': installer_item_hash,
            'installer_item_size': installer_item_size,
            'minimum_os_version': '10.9.0',  # TODO: hardcoded
            'name': manifest_enrollment_package.get_name(),
            'postinstall_script': postinstall_script,
            'receipts': [
                {'installed_size': installed_size,
                 'packageid': builder.package_identifier,
                 'version': builder.package_version},
            ],
            'unattended_install': True,
            'unattended_uninstall': True,
            'uninstallable': True,
            'uninstall_method': 'removepackages',
            'requires': manifest_enrollment_package.get_requires(),
            'version': builder.package_version}