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.
It seems to fail to start: $ electrum-ltc Error: Failed to load libsecp256k1. E | ecc_fast | libsecp256k1 library failed to load. exceptions: [OSError('/usr/lib/python3.12/site-packages/electrum_ltc/libsecp256k1.so.0: cannot open shared object file: No such file or directory'), OSError('libsecp256k1.so.0: cannot open shared object file: No such file or directory')]