generate-pkginfo.py depends on tomli (and doesn't allow tomllib for python >= 3.11)
Python >= 3.11 offers tomllib, most projects do something along the line to support both and thus remove the dependency on the separate/standalone tomli package when using Python >= 3.11:
try:
import tomllib
except ModuleNotFoundError:
import tomli as tomllib
[...]