def _make_extension_entry(
    name,
    description,
    url,
    enabled,
    core,
    latest_version,
    installed_version,
    status,
    pkg_type,
    installed=None,
    install=None,
):
    """Create an extension entry that can be sent to the client"""
    ret = dict(
        name=name,
        description=description,
        url=url,
        enabled=enabled,
        core=core,
        latest_version=latest_version,
        installed_version=installed_version,
        status=status,
        pkg_type=pkg_type,
    )
    if installed is not None:
        ret["installed"] = installed
    if install is not None:
        ret["install"] = install
    return ret