Add a flake that provides local test environments equivalent to the
CPU pull-request job, so local results are comparable with CI on hosts
whose system Python differs.
- Nix supplies Python 3.11, 3.12 and 3.13, git and the native runtime
libraries prebuilt wheels need; uv.lock remains the single source of
Python dependencies.
- `nix run .#test[-py311|-py312|-py313]` installs uv at the CI pin,
syncs the locked non-editable environment with the CI extras and runs
pytest with the CI options, marker filter and environment variables.
Extras, markers and the state directory can be overridden, e.g. for
the operator-UI Gradio gate.
- docs/NIX_TEST_ENVIRONMENT.md documents usage and scope; per-interpreter
state directories are ignored by git.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>