summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c4bdd01129c6117887544a3a18b60cfe3840dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Diego Nieto Cid <dnietoc@gmail.com>

pkgname="python-github3.py"
pkgver="2.0.0"
pkgrel=1
pkgdesc="A comprehensive wrapper around the GitHub API (v3)"
arch=("any")
url="https://github.com/sigmavirus24/github3.py"
license=("custom:Modified BSD")
makedepends=("python-setuptools")
depends=("python" "python-requests" "python-uritemplate" "python-dateutil" "python-jwcrypto")
source=("https://github.com/sigmavirus24/github3.py/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('3ee0481402d94f0737da5687e70d836b5a3dbe5567cb2d240cb0c616334a95a5')

build() {
    cd "github3.py-2.0.0"
    python setup.py build
}

check() {
## TODO This needs betamax, coverage and mock as makedepends
#    cd "${srcdir}/${_module}-${pkgver}"
#    python setup.py test
    :
}

package() {
    cd "github3.py-2.0.0"
    python setup.py install --skip-build --root="${pkgdir}" --optimize=1
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}