1 |
commit: 2030a2648a5259dd6c349b38f67d3822e179badf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 27 16:33:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 27 16:53:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2030a264 |
7 |
|
8 |
dev-python/pycryptodome: Bump to 3.16.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pycryptodome/Manifest | 1 + |
13 |
dev-python/pycryptodome/pycryptodome-3.16.0.ebuild | 58 ++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest |
17 |
index cdc906ff3b58..98b6b1d43c2f 100644 |
18 |
--- a/dev-python/pycryptodome/Manifest |
19 |
+++ b/dev-python/pycryptodome/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pycryptodome-3.15.0.gh.tar.gz 16547902 BLAKE2B ce1a6eaca4946d656c08f960f67537e61b9c82a69777fcb0b01b91a9a649c605dcc66a2a6d9fdc5533521a669544c7695e83db856dfcf8e4b2ba7301654b5555 SHA512 fc611174cfb4ca89fb457cc0d1220326ac813de5a83a959a95c1928a5220dc8c652655ac0a2b7d116b60cb4a8317959d8c2b2f3595e19b9b359a32beb042b58c |
22 |
+DIST pycryptodome-3.16.0.gh.tar.gz 16548063 BLAKE2B 4adf1c3027fe593e9a01eb0ea3da1f81ddcedd731a284a3f98dd02f07ba9eaa80e906bbcea1432fe64f08f0857033cfdbe43acd415fb3081718a301fbbb5ca16 SHA512 945c5bda213a08ba12a0ace8e4bf76730461f8dfce94fa426a97dfab846234ea06e121b176ae823d0f7da9316de50aafde6507a2f17efec4d4a0629d4d68d870 |
23 |
|
24 |
diff --git a/dev-python/pycryptodome/pycryptodome-3.16.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.16.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..9aa00023e3d2 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pycryptodome/pycryptodome-3.16.0.ebuild |
29 |
@@ -0,0 +1,58 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A self-contained cryptographic library for Python" |
42 |
+HOMEPAGE=" |
43 |
+ https://www.pycryptodome.org/ |
44 |
+ https://github.com/Legrandin/pycryptodome/ |
45 |
+ https://pypi.org/project/pycryptodome/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+ |
52 |
+LICENSE="BSD-2 Unlicense" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ dev-libs/gmp:0= |
58 |
+ >=dev-libs/libtomcrypt-1.18.2-r1:= |
59 |
+" |
60 |
+BDEPEND=" |
61 |
+ virtual/python-cffi[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+RDEPEND=" |
64 |
+ ${DEPEND} |
65 |
+ ${BDEPEND} |
66 |
+ !dev-python/pycrypto |
67 |
+" |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" |
71 |
+) |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ # make sure we're unbundling it correctly |
75 |
+ rm -r src/libtom || die |
76 |
+ |
77 |
+ distutils-r1_python_prepare_all |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ local -x PYTHONPATH=${S}/test_vectors:${PYTHONPATH} |
82 |
+ "${EPYTHON}" - <<-EOF || die |
83 |
+ import sys |
84 |
+ from Crypto import SelfTest |
85 |
+ SelfTest.run(verbosity=2, stream=sys.stdout) |
86 |
+ EOF |
87 |
+} |