package/python-tpm2-pytss: new package

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour
2024-06-27 09:54:40 +02:00
committed by Thomas Petazzoni
parent 4533db8f64
commit c72c6f26ed
5 changed files with 43 additions and 0 deletions

View File

@@ -2828,6 +2828,7 @@ F: package/physfs/
F: package/piglit/
F: package/python-libevdev/
F: package/python-pkgconfig/
F: package/python-tpm2-pytss/
F: package/qemu/
F: package/solarus/
F: package/stress-ng/

View File

@@ -1403,6 +1403,7 @@ menu "External python modules"
source "package/python-tomlkit/Config.in"
source "package/python-tornado/Config.in"
source "package/python-tortoise-orm/Config.in"
source "package/python-tpm2-pytss/Config.in"
source "package/python-tqdm/Config.in"
source "package/python-trafaret/Config.in"
source "package/python-traitlets/Config.in"

View File

@@ -0,0 +1,14 @@
config BR2_PACKAGE_PYTHON_TPM2_PYTSS
bool "python-tpm2-pytss"
depends on !BR2_STATIC_LIBS # tpm2-tss
select BR2_PACKAGE_PYTHON_ASN1CRYPTO # runtime
select BR2_PACKAGE_PYTHON_CFFI # runtime
select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
select BR2_PACKAGE_TPM2_TSS
help
TPM 2.0 TSS Bindings for Python.
https://github.com/tpm2-software/tpm2-pytss
comment "python-tpm2-pytss needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/tpm2-pytss/json
md5 069a02c99d3203fada940c3dd43b699c tpm2-pytss-2.2.1.tar.gz
sha256 b8f15473422f377f59c7217dcd1479165cce62dfa33934ec976a278baf2e9efe tpm2-pytss-2.2.1.tar.gz
# Locally computed sha256 checksums
sha256 18c1bf4b1ba1fb2c4ffa7398c234d83c0d55475298e470ae1e5e3a8a8bd2e448 LICENSE

View File

@@ -0,0 +1,22 @@
################################################################################
#
# python-tpm2-pytss
#
################################################################################
PYTHON_TPM2_PYTSS_VERSION = 2.2.1
PYTHON_TPM2_PYTSS_SOURCE = tpm2-pytss-$(PYTHON_TPM2_PYTSS_VERSION).tar.gz
PYTHON_TPM2_PYTSS_SITE = https://files.pythonhosted.org/packages/13/e5/8d4a9ac91579c741ec9fb63befcf6577107f22f3508c364fd53e277d7237
PYTHON_TPM2_PYTSS_SETUP_TYPE = setuptools
PYTHON_TPM2_PYTSS_LICENSE = BSD-2-Clause
PYTHON_TPM2_PYTSS_LICENSE_FILES = LICENSE
PYTHON_TPM2_PYTSS_DEPENDENCIES = host-pkgconf \
host-python-asn1crypto \
host-python-cffi \
host-python-cryptography \
host-python-pkgconfig \
host-python-pycparser \
tpm2-tss
$(eval $(python-package))