blob: 56832cf68f81a8b15e66db87ca128ddf16186a55 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Diego Nieto Cid <dnietoc@gmail.com>
pkgbase="python-github3.py"
pkgname=("python-github3.py" "python2-github3.py")
_commit="e586949a4dbed22f169afaffe25cb07e5a60a606"
pkgver="1.3.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" "python2-setuptools")
source=(github3::"git+https://github.com/sigmavirus24/github3.py.git#commit=${_commit}")
sha256sums=('SKIP')
build() {
cd "${srcdir}/github3"
python setup.py build
python2 setup.py build
}
check() {
## TODO This needs betamax, coverage and mock as makedepends
# cd "${srcdir}/${_module}-${pkgver}"
# python setup.py test
# python2 setup.py test
:
}
package_python-github3.py() {
depends=("python" "python-requests" "python-uritemplate" "python-dateutil" "python-jwcrypto")
cd "${srcdir}/github3"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
package_python2-github3.py() {
depends=("python2" "python2-requests" "python2-uritemplate" "python-dateutil" "python-jwcrypto")
cd "${srcdir}/github3"
python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
|