diff options
author | Christopher Byrne <salah.coronya@gmail.com> | 2022-03-28 10:21:45 -0500 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-04-23 09:25:03 +0300 |
commit | 5d8a2940c420dc8a74089153b605554c212922b3 (patch) | |
tree | 94cbcad134202acb24fbad4b16770d2bfef51a49 /dev-python | |
parent | app-misc/inputlircd: EAPI8 bump (diff) | |
download | gentoo-5d8a2940c420dc8a74089153b605554c212922b3.tar.gz gentoo-5d8a2940c420dc8a74089153b605554c212922b3.tar.bz2 gentoo-5d8a2940c420dc8a74089153b605554c212922b3.zip |
dev-python/tpm2-pytss: initial import v1.1.0
Python bindings for TSS.
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/tpm2-pytss/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tpm2-pytss/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild | 40 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/tpm2-pytss/Manifest b/dev-python/tpm2-pytss/Manifest new file mode 100644 index 000000000000..e64e0fbfbc18 --- /dev/null +++ b/dev-python/tpm2-pytss/Manifest @@ -0,0 +1 @@ +DIST tpm2-pytss-1.1.0.tar.gz 162559 BLAKE2B 2c9b34c323b96b3a8ded82a04accac9647d7f0b1cf05d269ed4bdf225d785fd8454dee82f054a5085f9d49d0feabacc8c5b72a7ee8af7bc9da8473d5689501b5 SHA512 71da9e005a3f645c0528a96bb96bafde9c262c5778646a19841af6323edaf889ede7267317ea96b7d44c7901d7bea04ca15fd1b5c86d61d33e49b34f5d0e2e94 diff --git a/dev-python/tpm2-pytss/metadata.xml b/dev-python/tpm2-pytss/metadata.xml new file mode 100644 index 000000000000..3028937ca6da --- /dev/null +++ b/dev-python/tpm2-pytss/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>salah.coronya@gmail.com</email> + <name>Christopher Byrne</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="fapi">Enable feature API (requires tpm2-tss be compile with thes same)</flag> + </use> +</pkgmetadata> diff --git a/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild b/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild new file mode 100644 index 000000000000..7121894df275 --- /dev/null +++ b/dev-python/tpm2-pytss/tpm2-pytss-1.1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for TSS" +HOMEPAGE="https://pypi.org/project/tpm2-pytss/" +SRC_URI="https://github.com/tpm2-software/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+fapi test" + +RDEPEND="app-crypt/tpm2-tss:=[fapi=] + fapi? ( >=app-crypt/tpm2-tss-3.0.3:= ) + dev-python/cffi[${PYTHON_USEDEP}] + dev-python/asn1crypto[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pycparser[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + test? ( app-crypt/swtpm )" + +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/pkgconfig[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +python_test() { + cd ${T} + PYTHONPATH="${BUILD_DIR}/install/$(python_get_sitedir):${S}:${PYTHONPATH}" \ + epytest ${S}/test --import-mode=importlib +} |