`nix-shell -p python311Packages.pip` fails

Similar to Nixos config suddenly complains about sphinx and python version, but without qemu/ceph

> nix-shell -p python311Packages.pip
error:
       … while calling the 'derivationStrict' builtin
         at «nix-internal»/derivation-internal.nix:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'shell'
         whose name attribute is located at /nix/store/i936ws2xplkqgbzkxkacqqq2dpag3ndf-source/pkgs/stdenv/generic/make-derivation.nix:647:11

       … while evaluating attribute 'buildInputs' of derivation 'shell'
         at /nix/store/i936ws2xplkqgbzkxkacqqq2dpag3ndf-source/pkgs/stdenv/generic/make-derivation.nix:718:11:
          717|           depsHostHost = hostHostOutputs;
          718|           buildInputs = hostTargetOutputs;
             |           ^
          719|           depsTargetTarget = targetTargetOutputs;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: sphinx-9.1.0 not supported for interpreter python3.11

Whereas for example nix-shell -p python312Packages.pip works as expected.

I suspect this was not spotted before because the more correct(?) way is to instead do

> nix-shell -p python3.11
> python -m venv .venv
> source .venv/bin/activate
> # pip available here

Should I open an issue with this ?

3.11 and 3.12 are barely supported and only available for temporary compatibilty.

I’d not rely on any version but what ever python3 is an alias for. If you need something else, you really should use a nixpkgs, that officially supported that version.

Oh I see, that’s a shame