What's the problem this feature will solve?
This feature will support Nix-based development workflows, without altering any assumptions of existing pytest development workflows.
Solution
I would like to create a build environment suitable for developing pytest with Nix.
Alternative solutions
One could maintain an external definition of such a Nix environment. However, this would be inherently non-discoverable for other potential Nix contributors.
Additional context
Nix is a declarative package manager, and can be used to create reproducible development environments. It can be thought of as python -m venv for an entire operating system.
The creation of an appropriate flake.nix is one way to support this workflow. With this file conjured, the command
would put the developer inside a shell with all the tools necessary to develop pytest (specifically, tox, all supported versions of Python, and pre-commit.)
I've already opened #14249 with a suitable implementation.