app-crypt/pynitrokey: add 0.13.0

Signed-off-by: Jernej Jakob <jernej.jakob@gmail.com>
This commit is contained in:
Jernej Jakob committed 2026-09-10 23:52:07 +02:00
1 parent f9e33d0857
commit 255ece766a
2 files changed
+62

No files matched your search

+1
View File
@@ -1 +1,2 @@
DIST pynitrokey-0.12.3.gh.tar.gz 220806 BLAKE2B 3c595f6efdc2a6c07b7fa776460c4a0a78101e1c5b12869fb4345d757cbe793021374f515d35a749cfd64bb8d18a14728d58b10ba16f0b54570625896c3b91a3 SHA512 6929b7b4573beea7b1c6ff4569c80e682d5dad1d67e03380c138a41fe6a882fde19de65b72f765a4e580ad26b142ae94b710dd8004ce11804f760b8a5a7b3e04
DIST pynitrokey-0.13.0.gh.tar.gz 217974 BLAKE2B f8dc28c919280c5c5907ef0266165e8028d8d56b4e87b1297c99d0d595797511d2395e2434fedce9b1adb620c8693b0bfd18adf4ac1593a54b996797c50f115d SHA512 9bb0f170a15daee71568758c36d81cf1c11e13c08ee188bdcc73af0e78a2c85af550faeaf81c8ee7c8a8417f15a741a23554fb753cbe9e80f5054da260721f2e
@@ -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/cffi-3[${PYTHON_USEDEP}]
>=dev-python/click-8.2[${PYTHON_USEDEP}]
<dev-python/click-9[${PYTHON_USEDEP}]
>=dev-python/cryptography-43[${PYTHON_USEDEP}]
<dev-python/cryptography-50[${PYTHON_USEDEP}]
=dev-python/fido2-2*[${PYTHON_USEDEP}]
>=dev-python/hidapi-0.14[${PYTHON_USEDEP}]
=dev-python/intelhex-2*[${PYTHON_USEDEP}]
>=dev-python/nitrokey-0.4.2[${PYTHON_USEDEP}]
<dev-python/nitrokey-0.5[${PYTHON_USEDEP}]
=dev-python/nkdfu-0.2*[${PYTHON_USEDEP}]
=dev-python/pyusb-1*[${PYTHON_USEDEP}]
=dev-python/requests-2*[${PYTHON_USEDEP}]
=dev-python/tqdm-4*[${PYTHON_USEDEP}]
=dev-python/tlv8-0.10*[${PYTHON_USEDEP}]
=dev-python/semver-3*[${PYTHON_USEDEP}]
=dev-python/nethsm-3*[${PYTHON_USEDEP}]
"
# tests require a connected nitrokey device and will destroy the data on it!
# it would be bad if the user was not expecting this.
RESTRICT="test"
python_compile_all(){
# https://github.com/Nitrokey/pynitrokey/blob/master/docs/packaging.md
_NITROPY_COMPLETE=bash_source nitropy > 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
}