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, 04 Dec 2021 22:20:20
Message-Id: 1638655910.7cdd74daeb080447137ea34924b5e5b6aec13736.mgorny@gentoo
1 commit: 7cdd74daeb080447137ea34924b5e5b6aec13736
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 4 22:11:50 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 4 22:11:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cdd74da
7
8 dev-python/pycryptodome: Bump to 3.12.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.12.0.ebuild | 45 ++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest
17 index 33a931ee4c05..665d61331ce3 100644
18 --- a/dev-python/pycryptodome/Manifest
19 +++ b/dev-python/pycryptodome/Manifest
20 @@ -1 +1,2 @@
21 DIST pycryptodome-3.11.0.tar.gz 15555515 BLAKE2B fee6a2f2ac0659c82efed2cfdaf7c4d1e4813aaa2203c41c249a7e512a4ec1c955f443022e81847fbfd095cd95f205c054b8c3ef90f4741063c679798cd8c5e5 SHA512 9a6f94a78909b236e9b9224915495f092891951b76836396706c11e8e87717ff84fd92fe04ad641d6a5a0ef1f3b339990d7f21a326e72b95b166a76169240964
22 +DIST pycryptodome-3.12.0.tar.gz 15130980 BLAKE2B 5eb34a03523652d990ddfdd1eebcbbacea30bffbe4838289c195b07658a98814ebec322aaffbed7b3fa564bc005d52ea1e483dedcb9f40b65d00e50c28d78582 SHA512 67f2a814d74305614fdf9dfb633c4fd9d80d2064119d0ecab24ae52fd8ce4b6de1a1e82c6ba7bcf22fb7db1a5a850adf078e22317b4c07229cd7cb8cb7f1ffd4
23
24 diff --git a/dev-python/pycryptodome/pycryptodome-3.12.0.ebuild b/dev-python/pycryptodome/pycryptodome-3.12.0.ebuild
25 new file mode 100644
26 index 000000000000..9bf29ac5892e
27 --- /dev/null
28 +++ b/dev-python/pycryptodome/pycryptodome-3.12.0.ebuild
29 @@ -0,0 +1,45 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A self-contained cryptographic library for Python"
41 +HOMEPAGE="https://www.pycryptodome.org/
42 + https://github.com/Legrandin/pycryptodome/
43 + https://pypi.org/project/pycryptodome/"
44 +SRC_URI="
45 + https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
46 + -> ${P}.tar.gz"
47 +
48 +LICENSE="BSD-2 Unlicense"
49 +SLOT="0"
50 +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"
51 +IUSE=""
52 +
53 +DEPEND="
54 + dev-libs/gmp:0=
55 + >=dev-libs/libtomcrypt-1.18.2-r1:="
56 +BDEPEND="
57 + virtual/python-cffi[${PYTHON_USEDEP}]"
58 +RDEPEND="
59 + ${DEPEND}
60 + ${BDEPEND}
61 + !dev-python/pycrypto"
62 +
63 +PATCHES=(
64 + "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch"
65 +)
66 +
67 +distutils_enable_tests setup.py
68 +
69 +python_prepare_all() {
70 + # make sure we're unbundling it correctly
71 + rm -r src/libtom || die
72 +
73 + distutils-r1_python_prepare_all
74 +}