commit:     8cd1a74b38b92a5b2f94cb021ff7a10be915d9e3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 21 05:19:57 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 21 05:38:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cd1a74b

dev-python/fido2: Bump to 2.0.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fido2/Manifest           |  1 +
 dev-python/fido2/fido2-2.0.0.ebuild | 56 +++++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/dev-python/fido2/Manifest b/dev-python/fido2/Manifest
index d5addd226a4a..a7a8d6514b88 100644
--- a/dev-python/fido2/Manifest
+++ b/dev-python/fido2/Manifest
@@ -1,2 +1,3 @@
 DIST fido2-0.9.3.tar.gz 217894 BLAKE2B 
ccc3a9b59045216037664b5bf4b969a79b86b300f67fc4253b563acbbee98912ea076996772f17b88141d2a36a933b4926de96f05c53e204d0bb4eaaa2daad6b
 SHA512 
f105c347784cdfab88ab08852227d24f4bca623145f7f76bd066dadab6ada1eae751934fd4dc7436a5c5fb3a0ed2fc4d5c59bb2a93888d470028f0713ca7e09e
 DIST fido2-1.2.0.tar.gz 266369 BLAKE2B 
6170fffe46c5d3baa79b061583ffa597690b7f636a6205bcafcc2d997d7a82d49388ce4f573511e4ade976e491bdabb24e16c8be23a6aba3cbb1a1e70437b218
 SHA512 
c9c7a47ed6608f2dcf06b38905708d64b85ca91ea2656b654474e3164a90b3feae36a0898cf984a4811f1f757e22d3c7ca3dad1ba909b6c8191e418b1a0f938c
+DIST fido2-2.0.0.tar.gz 274942 BLAKE2B 
5c19ffa6edc58ddcf05be24ad06d0a367b21d3a4e1ba392d2d84e99fbdeb7d36a0514cebcbf9de3f49c956b37f638024ceae2db252d705f5484574703cb1b1b3
 SHA512 
15640aae4a8aba8a4b7eec1c1da21dc52bd25f0759ff49f7b86609c1e15cf2150bf189b651e505a0042e0f05e554adec86dd0c42be71e9b4d9857d2883a15c1a

diff --git a/dev-python/fido2/fido2-2.0.0.ebuild 
b/dev-python/fido2/fido2-2.0.0.ebuild
new file mode 100644
index 000000000000..d35d81aa2422
--- /dev/null
+++ b/dev-python/fido2/fido2-2.0.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python based FIDO 2.0 library"
+HOMEPAGE="
+       https://github.com/Yubico/python-fido2/
+       https://pypi.org/project/fido2/
+"
+SRC_URI="
+       
https://github.com/Yubico/python-fido2/releases/download/${PV}/${P}.tar.gz
+"
+
+LICENSE="Apache-2.0 BSD-2 MIT MPL-2.0"
+SLOT="0/1.0" # Bumped every time a backwards-incompatible version is released
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="examples"
+
+RDEPEND="
+       dev-python/cryptography[${PYTHON_USEDEP}]
+       <dev-python/pyscard-3[${PYTHON_USEDEP}]
+       examples? (
+               dev-python/flask[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # unpin
+       sed -i -e '/cryptography/s:, <[0-9]*::' pyproject.toml || die
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       # skip device integration tests
+       epytest --no-device
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use examples; then
+               docinto examples
+               dodoc -r "${S}"/examples/.
+               docompress -x "/usr/share/doc/${PF}/examples"
+       fi
+}

Reply via email to