From 1834e4114d5dc8cf866be2c73342ec3aee67eb32 Mon Sep 17 00:00:00 2001 From: David Roman Date: Mon, 28 Sep 2026 14:38:22 +0200 Subject: [PATCH] app-crypt/pynitrokey: relax dev-python/cryptography version restriction According to https://github.com/Nitrokey/pynitrokey/commit/f18cab019e316b58d5f22128c9087ab56aced850 the API will be stable until v53 so we can relax the version restrictions here. Signed-off-by: David Roman --- .../pynitrokey/pynitrokey-0.13.0-r1.ebuild | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 app-crypt/pynitrokey/pynitrokey-0.13.0-r1.ebuild diff --git a/app-crypt/pynitrokey/pynitrokey-0.13.0-r1.ebuild b/app-crypt/pynitrokey/pynitrokey-0.13.0-r1.ebuild new file mode 100644 index 0000000000..82c6d53dc5 --- /dev/null +++ b/app-crypt/pynitrokey/pynitrokey-0.13.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{12..14} ) +inherit distutils-r1 optfeature shell-completion + +DESCRIPTION="A command line interface for the Nitrokey FIDO2, Start, 3 and NetHSM" +HOMEPAGE="https://github.com/Nitrokey/pynitrokey" + +SRC_URI="https://github.com/Nitrokey/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/cffi-1.15[${PYTHON_USEDEP}] + =dev-python/click-8.2[${PYTHON_USEDEP}] + =dev-python/cryptography-43[${PYTHON_USEDEP}] + =dev-python/hidapi-0.14[${PYTHON_USEDEP}] + =dev-python/intelhex-2*[${PYTHON_USEDEP}] + >=dev-python/nitrokey-0.4.2[${PYTHON_USEDEP}] + nitropy.bash || die + _NITROPY_COMPLETE=zsh_source nitropy > nitropy.zsh || die + _NITROPY_COMPLETE=fish_source nitropy > nitropy.fish || die +} + +python_install_all(){ + newbashcomp nitropy.bash nitropy + newzshcomp nitropy.zsh _nitropy + dofishcomp nitropy.fish + + distutils-r1_python_install_all +} + +pkg_postinst(){ + optfeature "'piv' subcommand support" dev-python/pyscard +}