From e801c34f93d10272f9cc152bd0685126a0654550 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 28 Jan 2019 20:55:54 -0500 Subject: [PATCH] Add py3-pygithub --- sr.ht/py3-pygithub/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sr.ht/py3-pygithub/APKBUILD diff --git a/sr.ht/py3-pygithub/APKBUILD b/sr.ht/py3-pygithub/APKBUILD new file mode 100644 index 0000000..8a7f7ab --- /dev/null +++ b/sr.ht/py3-pygithub/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=py3-pygithub +_pkgname=PyGithub +pkgver=1.40 +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="python3 py3-jwt py3-requests" +makedepends="python3-dev" +source="https://github.com/PyGithub/PyGithub/archive/v$pkgver/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py test +} + +package() { + cd "$builddir" + + python3 setup.py install --prefix=/usr --root="$pkgdir" + rm -R "$pkgdir"/usr/lib/python3.*/site-packages/github/tests +} + +sha512sums="e8719017ce04db2c25ab8059b124a43a3688d4775861b80a0bcc7a194eaf43cd942eba1da199b76ef35c5bcde364708586c09630a7fac5642867b5a62985efad PyGithub-1.40.tar.gz" -- 2.45.2