# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=gvm-tools # follow the same version of py3-gvm pkgver=23.4.0 pkgrel=0 pkgdesc="Collection of tools for remote controlling a OpenVAS / Greenbone" url="https://github.com/greenbone/gvm-tools" arch="noarch" license="GPL-3.0-or-later" depends="python3 py3-gvm py3-lxml" makedepends="py3-gpep517 py3-installer py3-poetry-core py3-wheel" checkdepends="py3-gvm py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvm-tools/archive/v$pkgver.tar.gz" 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 # outdated snapshot compare .testenv/bin/python3 -m pytest --ignore tests/test_parser.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl mkdir -p "$pkgdir"/usr/share/$pkgname/scripts cp $builddir/scripts/*.py "$pkgdir"/usr/share/$pkgname/scripts/ } sha512sums=" 41830e2388eb661d2e64fd63bf42f50adc4d3a1ec5fbe708d0cea072bf0256f10177424989a3fe44c6d93a7e88bcbba139f05e1ff11f85546a5a639974c14ad3 gvm-tools-23.4.0.tar.gz "