# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-pontos _pkgname=pontos pkgver=23.6.2 pkgrel=0 pkgdesc="Common utilities and tools maintained by Greenbone Networks" url="https://github.com/greenbone/pontos/" arch="noarch !armhf !ppc64le" license="Apache-2.0" depends=" py3-colorful py3-dateutil py3-h2 py3-httpx py3-packaging py3-rich py3-semver py3-tomlkit python3 " makedepends=" py3-gpep517 py3-installer py3-poetry-core " checkdepends=" py3-pytest py3-pytest-httpx py3-lxml " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/pontos/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver 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 # don't access gitconfigs touch "$srcdir"/x-git-config GIT_CONFIG_GLOBAL="$srcdir"/x-git-config \ .testenv/bin/python3 -m pytest -k 'not test_git_error' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 9e8a9b48c0ed70e033604682fdf95b21476a81fa0e49beceb23a35f776d2dddd7ee41c24a3bd64e03a3da13f9006e45d7a1524d8e236f6810be27108abe29762 py3-pontos-23.6.2.tar.gz "