projects/aports·blob master · refs

50 lines · 1.2 KiB

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