security/py-keyring: Drop importlib-metadata 3.12+
Need importlib-metadata only before Python 3.12.
keyring requires the importlib_metadata backport only on Python < 3.12
(keyring/compat/py312.py uses importlib.metadata otherwise), but the
port always pulls in devel/py-importlib-metadata (9.x). Ports that
also need devel/py-importlib-metadata8 then cannot be installed, e.g.
databases/py-dbt-snowflake through dbt-semantic-interfaces. Make the
dependency conditional, as upstream declares it.
While here, switch to USE_PYTHON=pep517 (the package metadata becomes
dist-info), with the build dependencies the sdist declares.
PR: 299921
Approved by: Douglas Thrift <douglas@douglasthrift.net> (maintainer)