mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-pontos
|
|
_pkgname=pontos
|
|
pkgver=23.5.0
|
|
pkgrel=1
|
|
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
|
|
"
|
|
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="
|
|
6a16aa161eb5bd78ad60c603f0e9fb529b3425905d85615eb9e90d84d829784281e7bb66d0a6abc64fbd872978725fedc3ad70aa59b8ee9c4ba14ecf625326ca py3-pontos-23.5.0.tar.gz
|
|
"
|