commit:     b47bd160a8ccb0f23eefa018bd8367fc1605d716
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Mon May  2 17:52:29 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon May  2 17:53:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b47bd160

net-analyzer/python-gvm: fix tests (jonas), PEP517 (sam), and code style

Closes: https://bugs.gentoo.org/842186
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Suggested-by: Sam James <sam <AT> gentoo.org>
Suggested-by: Jonas Licht <jonas.licht <AT> fem.tu-ilmenau.de>

 net-analyzer/python-gvm/python-gvm-21.11.0.ebuild | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild 
b/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild
index b50a5c454cd0..72431694f204 100644
--- a/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild
+++ b/net-analyzer/python-gvm/python-gvm-21.11.0.ebuild
@@ -4,24 +4,30 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+DISTUTILS_USE_PEP517=poetry
 
 inherit distutils-r1
 
 DESCRIPTION="Greenbone Vulnerability Management Python Library"
-HOMEPAGE="https://www.greenbone.net/en/ 
https://github.com/greenbone/python-gvm/";
+HOMEPAGE="https://www.greenbone.net https://github.com/greenbone/python-gvm/";
 SRC_URI="https://github.com/greenbone/python-gvm/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
 SLOT="0"
 LICENSE="GPL-3"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
 RDEPEND="
        dev-python/defusedxml[${PYTHON_USEDEP}]
        dev-python/lxml[${PYTHON_USEDEP}]
-       dev-python/paramiko[${PYTHON_USEDEP}]"
-
+       dev-python/paramiko[${PYTHON_USEDEP}]
+"
 DEPEND="${RDEPEND}"
 
 distutils_enable_tests unittest
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # drop connection tests
+       rm -r tests/connections || die
+}

Reply via email to