1 |
commit: 5f8627b3327fc2bf1f725cdbddd40523ae44ee67 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 10:15:56 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 10:26:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f8627b3 |
7 |
|
8 |
dev-python/paramiko: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/paramiko/paramiko-2.9.2-r1.ebuild | 54 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 54 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/paramiko/paramiko-2.9.2-r1.ebuild b/dev-python/paramiko/paramiko-2.9.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..c5a3eb1b9e81 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/paramiko/paramiko-2.9.2-r1.ebuild |
20 |
@@ -0,0 +1,54 @@ |
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 |
+PYTHON_REQ_USE="threads(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="SSH2 protocol library" |
33 |
+HOMEPAGE="https://www.paramiko.org/ https://github.com/paramiko/paramiko/ https://pypi.org/project/paramiko/" |
34 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="LGPL-2.1" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" |
39 |
+IUSE="examples server" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/cryptography-2.5[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] |
46 |
+" |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ dev-python/mock[${PYTHON_USEDEP}] |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+distutils_enable_sphinx sites/docs |
54 |
+distutils_enable_tests pytest |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ local PATCHES=( |
58 |
+ "${FILESDIR}/${PN}-2.7.1-tests.patch" |
59 |
+ ) |
60 |
+ |
61 |
+ if ! use server; then |
62 |
+ PATCHES+=( "${FILESDIR}/${PN}-2.4.2-disable-server.patch" ) |
63 |
+ fi |
64 |
+ distutils-r1_src_prepare |
65 |
+} |
66 |
+ |
67 |
+python_install_all() { |
68 |
+ distutils-r1_python_install_all |
69 |
+ |
70 |
+ if use examples; then |
71 |
+ docinto examples |
72 |
+ dodoc -r demos/* |
73 |
+ fi |
74 |
+} |