1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/py3-github3/APKBUILD
2023-02-12 09:49:05 +01:00

54 lines
1.3 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-github3
_pkgname=github3.py
pkgver=3.2.0
pkgrel=0
pkgdesc="Python wrapper for the GitHub API"
url="https://github3py.readthedocs.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-cryptography
py3-dateutil
py3-jwt
py3-requests
py3-uritemplate
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-betamax
py3-betamax_matchers
py3-pytest-xdist
"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-github3" # Backwards compatibility
provides="py-github3=$pkgver-r$pkgrel" # Backwards compatibility
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
testenv/bin/python3 -m pytest -n auto -k 'not test_delete_key'
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
8ce79200e745f36f35737cc209064ddaa9cd9466c2a33ac1aee514c0aa7ca723c6b5ece903f4d76c8381545b83a1057562c28dbcdb8da1a08830a5ed71f4450d github3.py-3.2.0.tar.gz
"