def METHOD_NAME(packages, pypi_repo):
    for package, dependencies in packages.items():
        pkgdir = create_pkgdir(package)
        generate_pip_package(pkgdir, pypi_repo, package, dependencies=list(dependencies.keys()))
        for dependency, dependency_dependencies in dependencies.items():
            METHOD_NAME({dependency: dependency_dependencies}, pypi_repo)