def calculate_seed_name(path: str) -> str:
    """
    Calculate the seed name based on the path to it.

    Args:
        path: The path to the seed.

    Returns:
        The name of the seed.

    """
    suffixes = ["example-spec", "-", "/"]
    for suffix in suffixes:
        if path.endswith(suffix):
            path = path[: -len(suffix)]

    return path