From 755ecc63c34034b68719f6dac52aa76ba08bbe5c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 11 Jul 2026 03:04:40 -0500 Subject: Adding metadata --- dev-python/python-pkcs11/Manifest | 2 + .../python-pkcs11/python-pkcs11-0.9.5.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 dev-python/python-pkcs11/python-pkcs11-0.9.5.ebuild (limited to 'dev-python/python-pkcs11') diff --git a/dev-python/python-pkcs11/Manifest b/dev-python/python-pkcs11/Manifest index 85b5764849d0..cb048868916a 100644 --- a/dev-python/python-pkcs11/Manifest +++ b/dev-python/python-pkcs11/Manifest @@ -1,2 +1,4 @@ DIST python_pkcs11-0.9.4.tar.gz 180658 BLAKE2B 1621c8453313ae652660277dcb027e84a96b48788c33cdb964e2e0e3120d52146638ad729137f7e782db0cfc491ede786002d23286fd57e882ca65a6e0b40419 SHA512 f902107d4f3935f279b44c39d1dc261834e614a3573111898ff6f97f93f34d9aa1a66522b722188e5343072ee830b34795b7a7541205a09d1ab48c018b705640 DIST python_pkcs11-0.9.4.tar.gz.provenance 9559 BLAKE2B d3b1d9a3cfade54d6dfd53d51b190447b090131035d952a92f59f951a2209e69981a910485b150ebf8c70319d1bb229fb9ae2594501118280339ac66255aa2d1 SHA512 1e13ef9fc9486c51888519435194761208fdbbfe2cefdec2fa1da49c9acfc2022079300c777efdddb3937a8734bb9334ae7a9331f4f23de07b4e7f3d40fefec9 +DIST python_pkcs11-0.9.5.tar.gz 194453 BLAKE2B 6f66073c81530e04254a70625a03070c483f222824fdea3dbfb5e8fc9799b3d475e67be5dde83f596d7ca0e658313b148bf3768111dbd8eee87e0549605b2ae1 SHA512 be9dc6b274cff71c2e2290768181c2cb91de7089ed27619144914ea44067f6746c1094b755b7a719f260a1e4c5f799c1844ebb3f5912c1fbcba77efa73f6eb73 +DIST python_pkcs11-0.9.5.tar.gz.provenance 9689 BLAKE2B 9945987fa757769bd75036420a4add670be7b0b9ac5f826338de5726a425e385b493a898ba58890310a34dbc052d1ba595da89d6416cc8dcb2161c595ba1733f SHA512 f37d60b1e6f2f51a3c5e34598ed3738aa6cea5da380719ddcc314422fb5a7ef7ce33c670e5edee19f987684767a02b61ac05e9d0b33871aad023be868f90640a diff --git a/dev-python/python-pkcs11/python-pkcs11-0.9.5.ebuild b/dev-python/python-pkcs11/python-pkcs11-0.9.5.ebuild new file mode 100644 index 000000000000..8dc002629cc9 --- /dev/null +++ b/dev-python/python-pkcs11/python-pkcs11-0.9.5.ebuild @@ -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=setuptools +DISTUTILS_EXT=1 +PYPI_VERIFY_REPO=https://github.com/pyauth/python-pkcs11 +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 edo pypi + +DESCRIPTION="PKCS#11/Cryptoki support for Python" +HOMEPAGE=" + https://github.com/pyauth/python-pkcs11/ + https://pypi.org/project/python-pkcs11/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/asn1crypto[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-libs/openssl + dev-libs/softhsm + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme + +src_test() { + local -x PKCS11_MODULE="${BROOT}/usr/$(get_libdir)/softhsm/libsofthsm2.so" + local -x PKCS11_TOKEN_LABEL="TEST" + local -x PKCS11_TOKEN_PIN="1234" + local -x PKCS11_TOKEN_SO_PIN="5678" + + mkdir -p "${HOME}/.config/softhsm2" || die + cat > "${HOME}/.config/softhsm2/softhsm2.conf" <<- EOF || die "Failed to create config" + directories.tokendir = ${T} + objectstore.backend = file + EOF + + edo softhsm2-util --init-token --free \ + --label ${PKCS11_TOKEN_LABEL} \ + --pin ${PKCS11_TOKEN_PIN} \ + --so-pin ${PKCS11_TOKEN_SO_PIN} + + rm -r pkcs11 || die + distutils-r1_src_test +} -- cgit v1.3