def METHOD_NAME(tmpfolder, monkeypatch, venv):
    # Given a project is created with pyscaffold
    # and it has some dependencies in setup.cfg
    create_project(project_path="myproj", requirements=["platformdirs"])
    if any(ch in pyscaffold_version for ch in ("b", "a", "pre", "rc")):
        flags = "--pre"
    else:
        flags = ""
    with tmpfolder.join("myproj").as_cwd():
        # When we install pipenv,
        venv.run("pip install -v pipenv")
        try:
            venv.run("pipenv --bare install certifi")
            # use it to proxy setup.cfg
            venv.run(f"pipenv --bare install {flags} -e .")
            # and install things to the dev env,
            venv.run("pipenv --bare install --dev flake8")
            # Then it should be able to generate a Pipfile.lock
            venv.run("pipenv lock")
        except Exception:
            if sys.version_info[:2] <= (3, 6):
                # TODO: Remove try...except when 3.6 is no longer supported
                pytest.skip("Skip Pipenv specific problem for 3.6")
            else:
                raise
        assert Path("Pipfile.lock").exists()
        # with the correct dependencies
        with open("Pipfile.lock") as fp:
            content = json.load(fp)
            assert content["default"]["platformdirs"]
            assert content["develop"]["flake8"]
        # and run things from inside pipenv's venv
        pipenv_path = venv.run("pipenv --venv")
        assert pipenv_path in venv.run("pipenv run which flake8")
        venv.run("pipenv --bare run flake8 src/myproj/skeleton.py")