Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycryptodome/
Date: Sat, 28 Jan 2023 16:19:02
Message-Id: 1674922734.adf5908c3d5441b7499f581a3d7b3ef2870f0427.mgorny@gentoo
1 commit: adf5908c3d5441b7499f581a3d7b3ef2870f0427
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 28 16:13:18 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 16:18:54 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adf5908c
7
8 dev-python/pycryptodome: Bump to 3.17.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.17.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 b9c506619f7f..6920e5e656b4 100644
18 --- a/dev-python/pycryptodome/Manifest
19 +++ b/dev-python/pycryptodome/Manifest
20 @@ -1 +1,2 @@
21 DIST pycryptodome-3.16.0.gh.tar.gz 16548063 BLAKE2B 4adf1c3027fe593e9a01eb0ea3da1f81ddcedd731a284a3f98dd02f07ba9eaa80e906bbcea1432fe64f08f0857033cfdbe43acd415fb3081718a301fbbb5ca16 SHA512 945c5bda213a08ba12a0ace8e4bf76730461f8dfce94fa426a97dfab846234ea06e121b176ae823d0f7da9316de50aafde6507a2f17efec4d4a0629d4d68d870
22 +DIST pycryptodome-3.17.0.gh.tar.gz 16714317 BLAKE2B a7a96ba4d10078ba4d9bc02b384c982ad7307065fd6c9118def43bebc073eccdfc11a766742e5d0207e9cce32aca2fe3da51f8a59964de8c15db6808cc2aae03 SHA512 c0a0754c0dd1d8138e8dd27c034e3f3469237eb5f205d86d0c5e2377fd7672c6ed0df9717292a73d380daaabe88c3be80b575ca1149f4c70f08d82aed0d4b39c
23
24 diff --git a/dev-python/pycryptodome/pycryptodome-3.17.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.17.0.ebuild
25 new file mode 100644
26 index 000000000000..0991832e809c
27 --- /dev/null
28 +++ b/dev-python/pycryptodome/pycryptodome-3.17.0.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2023 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_{9..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 +}