python310Packages.werkzeug version >=2.2.2 not found despite it being in unstable

when building my system, i get this error:

Processing ./Flask-2.2.2-py3-none-any.whl
Requirement already satisfied: Jinja2>=3.0 in /nix/store/ahx2qrgvfvwkv5adway5vl5y0ap4jw2c-python3.10-Jinja2-3.1.2/lib/python3.10/site-packages (from Flask==2.2.2) (3.1.2)
ERROR: Could not find a version that satisfies the requirement Werkzeug>=2.2.2 (from flask) (from versions: none)
ERROR: No matching distribution found for Werkzeug>=2.2.2

error: builder for '/nix/store/qvd2f9k1nakpdrbnc7627a32h3himixy-python3.10-flask-2.2.2.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/rcq2px2bymcxxb9dmg56lb8d9kgh350k-pgadmin-6.12.drv' failed to build
building '/nix/store/fiphlcy6hqg8736hxwzyfp2vdycplrg1-reload-container.drv'...
building '/nix/store/hjlcy7pma0k30mq1b97i1cjsd1xzbvzy-runuser-l.pam.drv'...
error: 1 dependencies of derivation '/nix/store/xbzd21m1lsi47parq0wkka0hpdcazfbw-system-path.drv' failed to build
building '/nix/store/a4qm3izj76qrrg7n36g4d1gkb1nn80lr-system-shutdown.drv'...
building '/nix/store/8w0z1vcb0731bhjpgcys01bgnqbq6q1s-systemd-boot-builder.py.drv'...
error: 1 dependencies of derivation '/nix/store/q9hfap3ji6l4a5p3b4wjdxib6piqx0fj-nixos-system-nix-22.11pre410970.fde244a8c76.drv' failed to build

the weird thing is, python310Packages.werkzeug is on version 2.2.2 in unstable so why does it fail to find it?

apparently a bug that has already been fixed but not merged yet: pgadmin 6.12 failed to build · Issue #191511 · NixOS/nixpkgs · GitHub