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.
Confirm. I am also affected and unable to proceed with the PYTHON_TARGETS migration to 3.12.
The "nest" overlay does already have x11-misc/libinput-gestures 2.76 with python_single_target_python3_12. https://github.com/gentoo-mirror/nest/tree/master/x11-misc/libinput-gestures