def get_netbox_docker_version_tag(netbox_version):
    """Get the repo tag to build netbox-docker in from the requested netbox version.

    Args:
        netbox_version (version.Version): The version of netbox we want to build

    Returns:
        str: The release tag for the netbox-docker repo that should be able to build
            the requested version of netbox.

    """
    major, minor = netbox_version.major, netbox_version.minor

    if (major, minor) == (2, 10):
        tag = "1.0.1"
    elif (major, minor) == (2, 9):
        tag = "0.26.2"
    elif (major, minor) == (2, 8):
        tag = "0.24.1"
    elif (major, minor) == (2, 7):
        tag = "0.24.0"
    else:
        raise NotImplementedError(
            "Version %s is not currently supported" % netbox_version
        )

    return tag