mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-14 07:02:32 +02:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=gvm-tools
|
|
# follow the same version of py3-gvm
|
|
pkgver=25.3.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="
|
|
d4760361b89b3164a60491c7ffa9604d427ad8bbb2e9cb284ed6a94106158ea68a35facbbe395706bd51c47d26e4c993d9232827e57723d1386859942889dc0b gvm-tools-25.3.0.tar.gz
|
|
"
|