aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-gitlab/APKBUILD
blob: c8528ac287f2333c39f800f903f22550b97a873d (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-gitlab
_pkgname=python-gitlab
pkgver=2.0.1
pkgrel=0
pkgdesc="v4 GitLab API compliant library and cmdline tool"
options="!check" # Requires unpackaged 'httmock'
url="https://github.com/python-gitlab/python-gitlab"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-requests py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="ca73dc00968d08381c57b8f56605858ec652f5d6ba497a76ba4c04c6bc78f46857b082d9a2134525690a2d9993717e022df2c560b7628334cb1e2e53b9e07377  python-gitlab-2.0.1.tar.gz"