This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
I copied vitables-3.0.2_p4-r1.ebuild from the main tree to a local overlay and set `PYTHON_COMPAT=( python3_{10..12} )` in it. The resulting package merges normally with PYTHON_SINGLE_TARGET="python3_12". After a quick inspection (opening an HDF5 file, inspecting, deleting and renaming some datasets) I cannot report any problems running the application either.