def flatten_requirement(requirement):
    """
    Return only the package name from a requirement.

    Arguments:
        requirement (pkg_resources.Requirement): A requirement object.

    Returns:
        string: Package name.
    """
    return requirement.key