1 |
commit: e8cb34310064acaed2f013f97ecec1c038ecaf87 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Dec 2 01:42:28 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Dec 2 01:44:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e8cb3431 |
7 |
|
8 |
dev-python/python-pkcs11: new package |
9 |
|
10 |
Package-Manager: Portage-3.0.10, Repoman-3.0.2 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/python-pkcs11/Manifest | 1 + |
14 |
dev-python/python-pkcs11/metadata.xml | 30 ++++++++++++++++ |
15 |
.../python-pkcs11/python-pkcs11-0.7.0.ebuild | 41 ++++++++++++++++++++++ |
16 |
3 files changed, 72 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/python-pkcs11/Manifest b/dev-python/python-pkcs11/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..662c8df3 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/python-pkcs11/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST python-pkcs11-0.7.0.tar.gz 106517 BLAKE2B ad5dde00beab92d2c530ebe0d4922a562db51b0015591d3f2dfe2f2489a01f72a8ccc4371fc0e88b2f3c8e45eb2bfc65c32c8f71dfa025f0ac9035ba2e8f2dd8 SHA512 2f8199296810c9f600012d151c42f00f9eb39dc22643a5a429f589f784fd4a14615d8b5371e175d277ea7af117d2650c1a8b69ce3c891276549c9fcb9a75229c |
25 |
|
26 |
diff --git a/dev-python/python-pkcs11/metadata.xml b/dev-python/python-pkcs11/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000..386a9beb |
29 |
--- /dev/null |
30 |
+++ b/dev-python/python-pkcs11/metadata.xml |
31 |
@@ -0,0 +1,30 @@ |
32 |
+<?xml version='1.0' encoding='UTF-8'?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>lssndrbarbieri@×××××.com</email> |
37 |
+ <name>Alessandro Barbieri</name> |
38 |
+ </maintainer> |
39 |
+ <longdescription lang="en"> |
40 |
+A high level, “more Pythonic” interface to the PKCS#11 (Cryptoki) standard to support HSM and Smartcard devices in Python. |
41 |
+ |
42 |
+The interface is designed to follow the logical structure of a HSM, with useful defaults for obscurely documented parameters. Many APIs will |
43 |
+optionally accept iterables and act as generators, allowing you to stream large data blocks for symmetric encryption. |
44 |
+ |
45 |
+python-pkcs11 also includes numerous utility functions to convert between PKCS #11 data structures and common interchange formats including PKCS #1 |
46 |
+and X.509. |
47 |
+ |
48 |
+python-pkcs11 is fully documented and has a full integration test suite for all features, with continuous integration against multiple HSM platforms including: |
49 |
+Thales nCipher |
50 |
+Opencryptoki TP |
51 |
+OpenSC/Smartcard-HSM/Nitrokey HSM |
52 |
+ </longdescription> |
53 |
+ <upstream> |
54 |
+ <remote-id type="github">danni/python-pkcs11</remote-id> |
55 |
+ <remote-id type="pypi">python-pkcs11</remote-id> |
56 |
+ <maintainer status="unknown"> |
57 |
+ <email>danielle@××××××××××.au</email> |
58 |
+ <name>Danielle Madeley</name> |
59 |
+ </maintainer> |
60 |
+ </upstream> |
61 |
+</pkgmetadata> |
62 |
|
63 |
diff --git a/dev-python/python-pkcs11/python-pkcs11-0.7.0.ebuild b/dev-python/python-pkcs11/python-pkcs11-0.7.0.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000..3aa228e1 |
66 |
--- /dev/null |
67 |
+++ b/dev-python/python-pkcs11/python-pkcs11-0.7.0.ebuild |
68 |
@@ -0,0 +1,41 @@ |
69 |
+# Copyright 1999-2020 Gentoo Authors |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI="7" |
73 |
+ |
74 |
+PYTHON_COMPAT=( python3_7 ) |
75 |
+ |
76 |
+DOCBUILDER="sphinx" |
77 |
+DOCDIR="${S}/docs" |
78 |
+DOCDEPEND="dev-python/sphinx_rtd_theme" |
79 |
+ |
80 |
+inherit distutils-r1 docs |
81 |
+ |
82 |
+DESCRIPTION="PKCS#11 (Cryptoki) support for Python" |
83 |
+HOMEPAGE=" |
84 |
+ https://github.com/danni/python-pkcs11 |
85 |
+ https://pypi.org/project/python-pkcs11 |
86 |
+" |
87 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
88 |
+ |
89 |
+LICENSE="MIT" |
90 |
+SLOT="0" |
91 |
+KEYWORDS="~amd64 ~x86" |
92 |
+#hardware device needed for tests |
93 |
+RESTRICT="test" |
94 |
+ |
95 |
+RDEPEND=" |
96 |
+ >=dev-python/asn1crypto-1.0.0[${PYTHON_USEDEP}] |
97 |
+ dev-python/cached-property[${PYTHON_USEDEP}] |
98 |
+" |
99 |
+DEPEND=" |
100 |
+ ${RDEPEND} |
101 |
+ dev-python/cython[${PYTHON_USEDEP}] |
102 |
+ test? ( |
103 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
104 |
+ dev-python/oscrypto[${PYTHON_USEDEP}] |
105 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
106 |
+ ) |
107 |
+" |
108 |
+ |
109 |
+distutils_enable_tests pytest |