def METHOD_NAME(
    self, name: NormalizedName, constraint: VersionConstraint
) -> list[Package]:
    """
    Find packages on the remote server.
    """
    try:
        page = self.get_page(name)
    except PackageNotFound:
        self._log(f"No packages found for {name}", level="debug")
        return []
    versions = [
        (version, page.yanked(name, version))
        for version in page.versions(name)
        if constraint.allows(version)
    ]
    return [
        Package(
            name,
            version,
            source_type="legacy",
            source_reference=self.name,
            source_url=self._url,
            yanked=yanked,
        )
        for version, yanked in versions
    ]