from pathlib import Path


def _entry_path_to_patch_path(input: str) -> Path:
    """Removes the first component of the path, and changes the suffix to `.patch`."""
    parts = Path(input).with_suffix(".patch").parts
    return Path("/".join(parts[1:]))