def get_datasource_for(suffix: str, datasources: list) -> dict:
    """Extract a single datasource from the list of all.

    Args:
        suffix: a string representing the app name in the config
        datasources: a list of datasources
    Returns:
        a datasource config dict
    """
    return [d for d in datasources if d["name"].endswith(suffix)].pop()