diff --git a/grayskull/strategy/pypi.py b/grayskull/strategy/pypi.py index ff60f2596..98df31eaf 100644 --- a/grayskull/strategy/pypi.py +++ b/grayskull/strategy/pypi.py @@ -136,8 +136,13 @@ def get_url_filename(metadata: dict, default: Optional[str] = None) -> str: for pkg_url in metadata["urls"]: if pkg_url["packagetype"] == "sdist": + name = metadata["info"]["name"] version = metadata["info"]["version"] - return pkg_url["filename"].replace(version, "{{ version }}") + return ( + pkg_url["filename"] + .replace(name, "{{ name }}") + .replace(version, "{{ version }}") + ) return default