mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 08:12:06 +01:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=gvm-tools
|
|
# follow the same version of py3-gvm
|
|
pkgver=23.9.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="
|
|
2c58d2cf5b0280c54e1451311bd9b331880ea338cef19bd5224580939b7e43befed5270e73e17a3016410803e417c7049f35aec63461b9d4d6c99baec0ecb374 gvm-tools-23.9.0.tar.gz
|
|
"
|