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/argon2-cffi-bindings/
Date: Thu, 19 May 2022 15:23:51
Message-Id: 1652973818.f746d8e28e99a2df2e3b4dbf0facab42577aafeb.mgorny@gentoo
1 commit: f746d8e28e99a2df2e3b4dbf0facab42577aafeb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 15:18:34 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 15:23:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f746d8e2
7
8 dev-python/argon2-cffi-bindings: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../argon2-cffi-bindings-21.2.0-r1.ebuild | 46 ++++++++++++++++++++++
13 1 file changed, 46 insertions(+)
14
15 diff --git a/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild b/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..4dfba2e61c70
18 --- /dev/null
19 +++ b/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild
20 @@ -0,0 +1,46 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Low-level CFFI bindings for the Argon2 password hashing library"
32 +HOMEPAGE="
33 + https://github.com/hynek/argon2-cffi-bindings/
34 + https://pypi.org/project/argon2-cffi-bindings/
35 +"
36 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
41 +IUSE="cpu_flags_x86_sse2"
42 +
43 +DEPEND="
44 + app-crypt/argon2:=
45 +"
46 +BDEPEND="
47 + >=dev-python/setuptools_scm-6.2[${PYTHON_USEDEP}]
48 + $(python_gen_cond_dep '
49 + dev-python/cffi[${PYTHON_USEDEP}]
50 + ' 'python*')
51 +"
52 +RDEPEND="
53 + ${DEPEND}
54 + ${BDEPEND}
55 +"
56 +
57 +DOCS=( CHANGELOG.md README.md )
58 +
59 +distutils_enable_tests pytest
60 +
61 +src_configure() {
62 + export ARGON2_CFFI_USE_SYSTEM=1
63 + # We cannot call usex in global scope, so we invoke it in src_configure
64 + export ARGON2_CFFI_USE_SSE2=$(usex cpu_flags_x86_sse2 1 0)
65 + distutils-r1_src_configure
66 +}