mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py3-pygithub
|
|
_pkgname=PyGithub
|
|
pkgver=2.6.1
|
|
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
|
|
"
|
|
checkdepends="
|
|
py3-httpretty
|
|
py3-pytest
|
|
py3-responses
|
|
"
|
|
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="
|
|
8ff34150b74e9f8b2212c6f93020621cb1aedbf7ecc8f6832f2083faf9ebb9949a626e1c5e50bb3876ed5a3b1976f13d9cf42f364dd4c9479dd5057c802d258c PyGithub-2.6.1.tar.gz
|
|
"
|