summaryrefslogtreecommitdiff
path: root/dev-python/python-pkcs11
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/python-pkcs11
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-python/python-pkcs11')
-rw-r--r--dev-python/python-pkcs11/Manifest4
-rw-r--r--dev-python/python-pkcs11/files/python-pkcs11-0.9.3-refactor-under-src.patch116
-rw-r--r--dev-python/python-pkcs11/metadata.xml14
-rw-r--r--dev-python/python-pkcs11/python-pkcs11-0.9.3.ebuild62
-rw-r--r--dev-python/python-pkcs11/python-pkcs11-0.9.4.ebuild61
5 files changed, 0 insertions, 257 deletions
diff --git a/dev-python/python-pkcs11/Manifest b/dev-python/python-pkcs11/Manifest
deleted file mode 100644
index 2702c2ac2e1f..000000000000
--- a/dev-python/python-pkcs11/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST python_pkcs11-0.9.3.tar.gz 174748 BLAKE2B 1f69a75e907276ec518afbf391fd69388c77a85ec7408d89b2f869434c2be1315c892d4bcbafd03e60d67795b2254c9da3ab976e391e2165c8d79535159191d0 SHA512 571947182264df94e4c2ec3e5922f85c5826006089ec87f194d3b782a46db9e19140a2d5076e130872b5f2068d3402f959a4acabace23250a05e3d1d5cd77fb3
-DIST python_pkcs11-0.9.3.tar.gz.provenance 9543 BLAKE2B 1cd704f6480996a62135b82fa85394f02e8e25dc54a23ac899a55fadff4544f54e206fbbe869fd863ecc97adb0454b40edd95874c0cffde2ca6c625a067ba489 SHA512 0a75f6341b06874c7692abdfc0594bc93ea2769723e08c27e1ff50de1fae5350ebb97ea50638123be583dd6159b9effe6f2a477d4f7cdfff44591768bf822b5e
-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
diff --git a/dev-python/python-pkcs11/files/python-pkcs11-0.9.3-refactor-under-src.patch b/dev-python/python-pkcs11/files/python-pkcs11-0.9.3-refactor-under-src.patch
deleted file mode 100644
index 52cbe0246349..000000000000
--- a/dev-python/python-pkcs11/files/python-pkcs11-0.9.3-refactor-under-src.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-diff --git a/MANIFEST.in b/MANIFEST.in
-index c426022..1bd1806 100644
---- a/MANIFEST.in
-+++ b/MANIFEST.in
-@@ -1,2 +1,2 @@
- graft extern/
--include pkcs11/*.pxd
-\ No newline at end of file
-+include src/pkcs11/*.pxd
-diff --git a/pyproject.toml b/pyproject.toml
-index 79b3e86..b119388 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -53,7 +53,7 @@ combine-as-imports = true
-
- [tool.setuptools]
- ext-modules = [
-- {name = "pkcs11._pkcs11", sources = ["pkcs11/_pkcs11.pyx"]}
-+ {name = "pkcs11._pkcs11", sources = ["src/pkcs11/_pkcs11.pyx"]}
- ]
-
- [tool.cibuildwheel]
-@@ -68,9 +68,6 @@ archs = ["AMD64"]
- [tool.cibuildwheel.macos]
- archs = ["universal2"]
-
--[tool.setuptools.packages.find]
--include = ["pkcs11*"]
--
- [tool.coverage.run]
- plugins = ["Cython.Coverage"]
-
-diff --git a/pkcs11/__init__.py b/src/pkcs11/__init__.py
-similarity index 100%
-rename from pkcs11/__init__.py
-rename to src/pkcs11/__init__.py
-diff --git a/pkcs11/_pkcs11.pxd b/src/pkcs11/_pkcs11.pxd
-similarity index 99%
-rename from pkcs11/_pkcs11.pxd
-rename to src/pkcs11/_pkcs11.pxd
-index ba1903d..03f094a 100644
---- a/pkcs11/_pkcs11.pxd
-+++ b/src/pkcs11/_pkcs11.pxd
-@@ -6,7 +6,7 @@ from cython.view cimport array
-
- from pkcs11.exceptions import *
-
--cdef extern from '../extern/cryptoki.h':
-+cdef extern from '../../extern/cryptoki.h':
-
- ctypedef unsigned char CK_BYTE
- ctypedef CK_BYTE CK_BBOOL
-diff --git a/pkcs11/_pkcs11.pyx b/src/pkcs11/_pkcs11.pyx
-similarity index 99%
-rename from pkcs11/_pkcs11.pyx
-rename to src/pkcs11/_pkcs11.pyx
-index 27f692e..6a33094 100644
---- a/pkcs11/_pkcs11.pyx
-+++ b/src/pkcs11/_pkcs11.pyx
-@@ -1946,7 +1946,7 @@ _CLASS_MAP = {
- ObjectClass.CERTIFICATE: Certificate,
- }
-
--cdef extern from "../extern/load_module.c":
-+cdef extern from "../../extern/load_module.c":
- ctypedef struct P11_HANDLE:
- void *get_function_list_ptr
-
-diff --git a/pkcs11/attributes.py b/src/pkcs11/attributes.py
-similarity index 100%
-rename from pkcs11/attributes.py
-rename to src/pkcs11/attributes.py
-diff --git a/pkcs11/constants.py b/src/pkcs11/constants.py
-similarity index 100%
-rename from pkcs11/constants.py
-rename to src/pkcs11/constants.py
-diff --git a/pkcs11/defaults.py b/src/pkcs11/defaults.py
-similarity index 100%
-rename from pkcs11/defaults.py
-rename to src/pkcs11/defaults.py
-diff --git a/pkcs11/exceptions.py b/src/pkcs11/exceptions.py
-similarity index 100%
-rename from pkcs11/exceptions.py
-rename to src/pkcs11/exceptions.py
-diff --git a/pkcs11/mechanisms.py b/src/pkcs11/mechanisms.py
-similarity index 100%
-rename from pkcs11/mechanisms.py
-rename to src/pkcs11/mechanisms.py
-diff --git a/pkcs11/types.py b/src/pkcs11/types.py
-similarity index 100%
-rename from pkcs11/types.py
-rename to src/pkcs11/types.py
-diff --git a/pkcs11/util/__init__.py b/src/pkcs11/util/__init__.py
-similarity index 100%
-rename from pkcs11/util/__init__.py
-rename to src/pkcs11/util/__init__.py
-diff --git a/pkcs11/util/dh.py b/src/pkcs11/util/dh.py
-similarity index 100%
-rename from pkcs11/util/dh.py
-rename to src/pkcs11/util/dh.py
-diff --git a/pkcs11/util/dsa.py b/src/pkcs11/util/dsa.py
-similarity index 100%
-rename from pkcs11/util/dsa.py
-rename to src/pkcs11/util/dsa.py
-diff --git a/pkcs11/util/ec.py b/src/pkcs11/util/ec.py
-similarity index 100%
-rename from pkcs11/util/ec.py
-rename to src/pkcs11/util/ec.py
-diff --git a/pkcs11/util/rsa.py b/src/pkcs11/util/rsa.py
-similarity index 100%
-rename from pkcs11/util/rsa.py
-rename to src/pkcs11/util/rsa.py
-diff --git a/pkcs11/util/x509.py b/src/pkcs11/util/x509.py
-similarity index 100%
-rename from pkcs11/util/x509.py
-rename to src/pkcs11/util/x509.py
diff --git a/dev-python/python-pkcs11/metadata.xml b/dev-python/python-pkcs11/metadata.xml
deleted file mode 100644
index e6ffc9c4fcc5..000000000000
--- a/dev-python/python-pkcs11/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<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>
- <upstream>
- <remote-id type="github">pyauth/python-pkcs11</remote-id>
- <remote-id type="pypi">python-pkcs11</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/python-pkcs11/python-pkcs11-0.9.3.ebuild b/dev-python/python-pkcs11/python-pkcs11-0.9.3.ebuild
deleted file mode 100644
index c32f8dcb7880..000000000000
--- a/dev-python/python-pkcs11/python-pkcs11-0.9.3.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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
-
-PATCHES=( "${FILESDIR}/${PN}-0.9.3-refactor-under-src.patch" )
-
-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}
-
- distutils-r1_src_test
-}
diff --git a/dev-python/python-pkcs11/python-pkcs11-0.9.4.ebuild b/dev-python/python-pkcs11/python-pkcs11-0.9.4.ebuild
deleted file mode 100644
index 8dc002629cc9..000000000000
--- a/dev-python/python-pkcs11/python-pkcs11-0.9.4.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# 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
-}