summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Byrne <salah.coronya@gmail.com>2023-02-14 16:30:32 -0600
committerSam James <sam@gentoo.org>2023-02-16 05:08:28 +0000
commitd412c9753c1e2c701f46d84c61cecfb2917f2be8 (patch)
tree4030e35e730a9a24fe1e1b87a8237a581cde58dc /app-crypt
parentnet-misc/curl: add 7.88.0 (diff)
downloadgentoo-d412c9753c1e2c701f46d84c61cecfb2917f2be8.tar.gz
gentoo-d412c9753c1e2c701f46d84c61cecfb2917f2be8.tar.bz2
gentoo-d412c9753c1e2c701f46d84c61cecfb2917f2be8.zip
app-crypt/tpm2-tools: add missing python_check_deps and enable py3.11
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/tpm2-tools/tpm2-tools-5.2-r1.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/app-crypt/tpm2-tools/tpm2-tools-5.2-r1.ebuild b/app-crypt/tpm2-tools/tpm2-tools-5.2-r1.ebuild
index 3ab7ad1a2fbe..b51e5b4b83e0 100644
--- a/app-crypt/tpm2-tools/tpm2-tools-5.2-r1.ebuild
+++ b/app-crypt/tpm2-tools/tpm2-tools-5.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
inherit autotools bash-completion-r1 flag-o-matic python-any-r1
DESCRIPTION="Tools for the TPM 2.0 TSS"
@@ -41,6 +41,14 @@ PATCHES=(
"${FILESDIR}/${PN}-5.2-testparms-fix-condition-for-negative-test.patch"
)
+python_check_deps() {
+ python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
src_prepare() {
default
sed -i \