Pipenv: A Guide to the New Python Packaging Tool – R...put the dependency in a special [dev-packages] location in the Pipfile.
pipenv install pytest --dev
These development packages only get installed if you specify the --dev argument with pipenv install.
pipenv install --dev