projects/aports·blob master · refs

54 lines · 1.3 KiB

1# Contributor: Fabian Affolter <[email protected]>
2# Maintainer: Fabian Affolter <[email protected]>
3pkgname=py3-github3
4_pkgname=github3.py
5pkgver=4.0.1
6pkgrel=1
7pkgdesc="Python wrapper for the GitHub API"
8url="https://github3py.readthedocs.org/"
9arch="noarch"
10license="BSD-3-Clause"
11depends="
12 py3-cryptography
13 py3-dateutil
14 py3-jwt
15 py3-requests
16 py3-uritemplate
17 python3
18 "
19makedepends="
20 py3-gpep517
21 py3-hatchling
22 "
23checkdepends="
24 py3-betamax
25 py3-betamax_matchers
26 py3-pytest-xdist
27 "
28subpackages="$pkgname-pyc"
29source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
30builddir="$srcdir/github3.py-$pkgver"
31
32replaces="py-github3" # Backwards compatibility
33provides="py-github3=$pkgver-r$pkgrel" # Backwards compatibility
34
35build() {
36 gpep517 build-wheel \
37 --wheel-dir .dist \
38 --output-fd 3 3>&1 >&2
39}
40
41check() {
42 python3 -m venv --clear --without-pip --system-site-packages .testenv
43 .testenv/bin/python3 -m installer .dist/*.whl
44 .testenv/bin/python3 -m pytest -n auto -k 'not test_delete_key'
45}
46
47package() {
48 python3 -m installer -d "$pkgdir" \
49 .dist/*.whl
50}
51
52sha512sums="
53a79f7e4c48405318bd61d03c7a8b2dc3629f6e2d8e954e316fba319115dd12c6e5e2fd69a00743e86078367b083841dbc494704e66ffda8582fb48c614ecf5b2 github3.py-4.0.1.tar.gz
54"