def parse_github_url(some_url):
    """
    Takes in something that looks like a Github url in a requirements.txt
    file and returns the package name
    """
    if 'github' in some_url and 'opal' in some_url:
        package_name = some_url.split('@')[0].split('/')[-1]
        package_name = package_name.replace('.git', '')
        version = some_url.split('@')[-1].split('#')[0]
        return {package_name: version}
