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/pynacl/
Date: Fri, 13 May 2022 13:39:27
Message-Id: 1652448801.066f05125951d182b894c9e77e66f093f7b2bf13.mgorny@gentoo
1 commit: 066f05125951d182b894c9e77e66f093f7b2bf13
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 13:33:21 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 13:33:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=066f0512
7
8 dev-python/pynacl: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pynacl/pynacl-1.5.0-r1.ebuild | 42 ++++++++++++++++++++++++++++++++
13 1 file changed, 42 insertions(+)
14
15 diff --git a/dev-python/pynacl/pynacl-1.5.0-r1.ebuild b/dev-python/pynacl/pynacl-1.5.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..7cbd19568d3d
18 --- /dev/null
19 +++ b/dev-python/pynacl/pynacl-1.5.0-r1.ebuild
20 @@ -0,0 +1,42 @@
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..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python binding to the Networking and Cryptography (NaCl) library"
32 +HOMEPAGE="
33 + https://github.com/pyca/pynacl/
34 + https://pypi.org/project/PyNaCl/
35 +"
36 +SRC_URI="
37 + https://github.com/pyca/${PN}/archive/${PV}.tar.gz
38 + -> ${P}.gh.tar.gz
39 +"
40 +
41 +LICENSE="Apache-2.0"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
44 +
45 +RDEPEND="
46 + dev-python/six[${PYTHON_USEDEP}]
47 + >=dev-python/cffi-1.4.1[${PYTHON_USEDEP}]
48 + dev-libs/libsodium:0/23
49 +"
50 +BDEPEND="${RDEPEND}
51 + test? (
52 + >=dev-python/hypothesis-3.27.0[${PYTHON_USEDEP}]
53 + )
54 +"
55 +
56 +distutils_enable_tests pytest
57 +
58 +src_compile() {
59 + # For not using the bundled libsodium
60 + local -x SODIUM_INSTALL=system
61 + distutils-r1_src_compile
62 +}