| 1 | # Contributor: Francesco Colista <[email protected]> |
| 2 | # Maintainer: Francesco Colista <[email protected]> |
| 3 | pkgname=greenbone-feed-sync |
| 4 | # follow the same version of gvm-tools |
| 5 | pkgver=25.4.2 |
| 6 | pkgrel=0 |
| 7 | pkgdesc="New script for syncing the Greenbone Community Feed" |
| 8 | url="https://github.com/greenbone/greenbone-feed-sync" |
| 9 | arch="noarch" |
| 10 | license="GPL-3.0-or-later" |
| 11 | depends=" |
| 12 | py3-rich |
| 13 | python3 |
| 14 | rsync |
| 15 | " |
| 16 | makedepends=" |
| 17 | py3-gpep517 |
| 18 | py3-hatchling |
| 19 | py3-installer |
| 20 | py3-poetry-core |
| 21 | py3-lxml |
| 22 | " |
| 23 | checkdepends=" |
| 24 | py3-pontos |
| 25 | py3-pytest |
| 26 | py3-shtab |
| 27 | " |
| 28 | subpackages="$pkgname-pyc" |
| 29 | source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/greenbone-feed-sync/archive/refs/tags/v$pkgver.tar.gz" |
| 30 | |
| 31 | build() { |
| 32 | gpep517 build-wheel \ |
| 33 | --wheel-dir .dist \ |
| 34 | --output-fd 3 3>&1 >&2 |
| 35 | } |
| 36 | |
| 37 | check() { |
| 38 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 39 | .testenv/bin/python3 -m installer .dist/*.whl |
| 40 | .testenv/bin/python3 -m pytest --deselect=tests/test_parser.py |
| 41 | } |
| 42 | |
| 43 | package() { |
| 44 | python3 -m installer -d "$pkgdir" \ |
| 45 | .dist/*.whl |
| 46 | } |
| 47 | |
| 48 | sha512sums=" |
| 49 | c07af536dfda46cd482c92659cdbed0eff83ed0b454cf3791b63c28361edbabd500d2ed18f2ed534a47ff1edfb66161c9a2f9b87142f3583f596f74d5b639a97 greenbone-feed-sync-25.4.2.tar.gz |
| 50 | " |