1 |
commit: b47bd160a8ccb0f23eefa018bd8367fc1605d716 |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 17:52:29 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 17:53:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b47bd160 |
7 |
|
8 |
net-analyzer/python-gvm: fix tests (jonas), PEP517 (sam), and code style |
9 |
|
10 |
Closes: https://bugs.gentoo.org/842186 |
11 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
12 |
Suggested-by: Sam James <sam <AT> gentoo.org> |
13 |
Suggested-by: Jonas Licht <jonas.licht <AT> fem.tu-ilmenau.de> |
14 |
|
15 |
net-analyzer/python-gvm/python-gvm-21.11.0.ebuild | 16 +++++++++++----- |
16 |
1 file changed, 11 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild b/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild |
19 |
index b50a5c454cd0..72431694f204 100644 |
20 |
--- a/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild |
21 |
+++ b/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild |
22 |
@@ -4,24 +4,30 @@ |
23 |
EAPI=8 |
24 |
|
25 |
PYTHON_COMPAT=( python3_{8..10} ) |
26 |
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml |
27 |
+DISTUTILS_USE_PEP517=poetry |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
DESCRIPTION="Greenbone Vulnerability Management Python Library" |
32 |
-HOMEPAGE="https://www.greenbone.net/en/ https://github.com/greenbone/python-gvm/" |
33 |
+HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/python-gvm/" |
34 |
SRC_URI="https://github.com/greenbone/python-gvm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
|
36 |
SLOT="0" |
37 |
LICENSE="GPL-3" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
-IUSE="" |
40 |
|
41 |
RDEPEND=" |
42 |
dev-python/defusedxml[${PYTHON_USEDEP}] |
43 |
dev-python/lxml[${PYTHON_USEDEP}] |
44 |
- dev-python/paramiko[${PYTHON_USEDEP}]" |
45 |
- |
46 |
+ dev-python/paramiko[${PYTHON_USEDEP}] |
47 |
+" |
48 |
DEPEND="${RDEPEND}" |
49 |
|
50 |
distutils_enable_tests unittest |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ distutils-r1_src_prepare |
54 |
+ |
55 |
+ # drop connection tests |
56 |
+ rm -r tests/connections || die |
57 |
+} |