mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-13 09:31:57 +01:00
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py3-pygithub
|
|
_pkgname=PyGithub
|
|
pkgver=2.5.0
|
|
pkgrel=0
|
|
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
|
|
py3-typing-extensions
|
|
py3-urllib3
|
|
python3
|
|
"
|
|
checkdepends="
|
|
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="
|
|
4fbb6b27e21ba97ee59a0bafee40768d2beb61d9d405e2edd04bb859df7e299c072917dd7fde85202a539591d806e1a4697576cab78b465c559eef50fa223183 PyGithub-2.5.0.tar.gz
|
|
"
|