@staticmethod
def _get_sdist_url_from_pypi(metadata: dict) ->str:
    """Return the sdist url looking for the pypi metadata

        :param metadata: pypi metadata
        :return: sdist url
        """
    for sdist_url in metadata['urls']:
        if sdist_url['packagetype'] == 'sdist':
            return sdist_url['url']
