aports/community/py3-pygithub/APKBUILD
2023-04-25 07:00:46 +00:00

52 lines
1.1 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-pygithub
_pkgname=PyGithub
pkgver=1.58.1
pkgrel=1
pkgdesc="Typed interactions with the GitHub API v3"
url="https://github.com/PyGithub/PyGithub"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
py3-cryptography
py3-deprecated
py3-jwt
py3-pynacl
py3-requests
python3
"
checkdepends="
py3-cryptography
py3-httpretty
py3-pytest
"
makedepends="
py3-gpep517
py3-setuptools_scm
py3-wheel
"
subpackages="$pkgname-pyc"
source="https://github.com/PyGithub/PyGithub/archive/v$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/PyGithub-$pkgver-py3-none-any.whl
}
sha512sums="
6c955294667c7d581fe1d000382472af4b460484e56dd44decfc36ff7c392673ef6553f4bcdb79ce584b334bfd2e9080370eb4c30e559f6cd03e7d75e9ac13b4 PyGithub-1.58.1.tar.gz
"