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