aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-gitlab/APKBUILD
blob: 41976174d22b2798301d2db5a50e6d201dc09f52 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-gitlab
_pkgname=python-gitlab
pkgver=2.2.0
pkgrel=0
pkgdesc="v4 GitLab API compliant library and cmdline tool"
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() {
	# Ignore tests that require unpackaged 'httmock'
	python3 -m pytest \
		--ignore gitlab/tests/test_gitlab.py \
		--ignore gitlab/tests/test_mixins.py \
		--ignore gitlab/tests/objects/test_application.py \
		--ignore gitlab/tests/objects/test_commits.py \
		--ignore gitlab/tests/objects/test_groups.py \
		--ignore gitlab/tests/objects/test_projects.py
}

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

sha512sums="bdf34e4b9e45f5767faf81d52caf1b800d931a105940bb80b1e58cc8efc34a319196a6aa437d49215f0f4ff24359cc2497853486698a23413b2bb3dfe169e5e3  python-gitlab-2.2.0.tar.gz"