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.
Supposedly obsolete/fixed, as https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/rocm-smi/rocm-smi-6.1.1.ebuild has `PYTHON_COMPAT=( python3_{10..13} )`
d953c7514231d39335733c921649429a429a6288