1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 11:49:53 +03:00
aports/community/py3-gitlab/APKBUILD
2025-05-11 02:20:33 +02:00

65 lines
1.5 KiB
Text

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=py3-gitlab
_pyname=${pkgname/py3/python}
pkgver=5.6.0
pkgrel=0
pkgdesc="Python wrapper for Gitlab's API"
url="https://github.com/python-gitlab/python-gitlab"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
python3
py3-gql
py3-httpx
py3-requests
py3-requests-toolbelt
"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
py3-sphinx
py3-sphinxcontrib-autoprogram
py3-myst-parser
"
checkdepends="
py3-argcomplete
py3-build
py3-pytest
py3-responses
py3-respx
py3-trio
py3-yaml
"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-gitlab/python-gitlab/archive/refs/tags/v$pkgver.tar.gz
fix-test.patch"
builddir="$srcdir/$_pyname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
sphinx-build -W -b man docs/ man/
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# Ignore functional e2e tests
.testenv/bin/python3 -m pytest --ignore=tests/functional/
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
install -Dm644 man/$_pyname.1 \
"$pkgdir"/usr/share/man/man1/$_pyname.1
}
sha512sums="
1fd45e86ec3191d78058e639b89bb0004f7e9946a924d4f8652b1fa39add9e34533087b7f0e02c30cf99790ef4902d29b20648ec5c10907514ac7080170740d0 py3-gitlab-5.6.0.tar.gz
b5488db02a2eec74040f7b80d07c8bdae8bbdb735683e2e61a7ad2de478ee21d70c403fb2eb511b2a0a00020f806f5aa4a7b1888e58e14c3d782d0be98de5240 fix-test.patch
"