# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-gvm _pkgname=${pkgname/py3/python} # follow the same version of gvm-tools pkgver=23.4.2 pkgrel=0 pkgdesc="Greenbone Vulnerability Management Python Library " url="https://github.com/greenbone/python-gvm" arch="noarch" license="GPL-3.0-or-later" depends="python3 py3-paramiko py3-lxml py3-defusedxml" makedepends="py3-gpep517 py3-installer py3-poetry-core" checkdepends="py3-defusedxml py3-pytest py3-lxml py3-paramiko" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/$_pkgname/archive/v${pkgver/_/.}.tar.gz" builddir="$srcdir/$_pkgname-${pkgver/_/.}" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl # hangs .testenv/bin/python3 -m pytest \ --deselect=tests/connections/test_ssh_connection.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" c8bb7004dff2e0184c7de0568eefe84f58a7159fff0d0567824a5d31ed83758b8c9a6ed71a0809f2a3d772f56e29383b759568ff55e21103ebffe442f4880565 py3-gvm-23.4.2.tar.gz "