1 |
commit: 6b07f08fbd6975de27d3cc87667002533d91dd4e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 17:40:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 17:59:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b07f08f |
7 |
|
8 |
dev-python/consonance: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/consonance/consonance-0.1.5-r1.ebuild | 37 ++++++++++++++++++++++++ |
13 |
1 file changed, 37 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/consonance/consonance-0.1.5-r1.ebuild b/dev-python/consonance/consonance-0.1.5-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..71911ed00e7d |
18 |
--- /dev/null |
19 |
+++ b/dev-python/consonance/consonance-0.1.5-r1.ebuild |
20 |
@@ -0,0 +1,37 @@ |
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="WhatsApp's handshake implementation using Noise Protocol" |
32 |
+HOMEPAGE="https://github.com/tgalal/consonance" |
33 |
+SRC_URI="https://github.com/tgalal/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3+" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="examples" |
39 |
+# Tests require an active internet connection |
40 |
+RESTRICT="test" |
41 |
+PROPERTIES="test_network" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
45 |
+ dev-python/dissononce[${PYTHON_USEDEP}] |
46 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
47 |
+ dev-python/python-axolotl-curve25519[${PYTHON_USEDEP}] |
48 |
+ dev-python/transitions[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+ |
51 |
+distutils_enable_tests pytest |
52 |
+ |
53 |
+src_install() { |
54 |
+ distutils-r1_src_install |
55 |
+ |
56 |
+ use examples && dodoc examples/*.py |
57 |
+} |