Install this version:
emerge -a =app-crypt/yubikey-manager-5.9.1-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-crypt/yubikey-manager-5.9.1-r1
Or alternatively:
emerge --autounmask-write -a =app-crypt/yubikey-manager-5.9.1-r1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1 verify-sig
MY_PN="${PN/-/_}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python library and command line tool for configuring a YubiKey"
HOMEPAGE="https://developers.yubico.com/yubikey-manager/"
# According to https://github.com/Yubico/yubikey-manager/issues/518 the release
# tarballs on Yubico Web site and on GitHub should be identical, and at least
# for recent releases the latter are signed as well. Only the automatically
# generated "Source code (tar.gz)" tarballs should not be used.
# Still, prefer the former if available.
SRC_URI="https://developers.yubico.com/${PN}/Releases/${MY_P}.tar.gz
verify-sig? ( https://developers.yubico.com/${PN}/Releases/${MY_P}.tar.gz.sig )"
S="${WORKDIR}"/${MY_P}
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/yubico.com.asc"
# app-crypt/ccid required for
# - 'ykman oath'
# - 'ykman openpgp'
# - 'ykman piv'
RDEPEND="
app-crypt/ccid
>=dev-python/click-8.0[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
>=dev-python/fido2-2.0.0:0/1.0[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
>=dev-python/pyscard-2.0[${PYTHON_USEDEP}]
>=dev-python/python-pskc-1.3[${PYTHON_USEDEP}]"
BDEPEND="
test? ( dev-python/makefun[${PYTHON_USEDEP}] )
verify-sig? ( >=sec-keys/openpgp-keys-yubico-20250604 )"
distutils_enable_tests pytest
python_prepare_all() {
# remove dev-python/cryptography upper version limit
sed -i -e 's/, <49//' pyproject.toml || die
distutils-r1_python_prepare_all
}
python_install_all() {
distutils-r1_python_install_all
doman man/ykman.1
}
app-crypt/ccid >=dev-python/click-8.0[] dev-python/cryptography[] >=dev-python/fido2-2.0.0:0/1.0[] dev-python/keyring[] >=dev-python/pyscard-2.0[] >=dev-python/python-pskc-1.3[]
test? ( dev-python/makefun[] ) verify-sig? ( >=sec-keys/openpgp-keys-yubico-20250604 )