# Contributor: Leo # Maintainer: Leo pkgname=py3-gitlab _pkgname=python-gitlab pkgver=1.12.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="cf23af1d587fb80b13525eabe2bd4c442856aff03414c6239299b630676b4b20f0845012532caddc2a4246b62ef10cfc9557d3bd08820e16fad8fa201cff9a12 python-gitlab-1.12.1.tar.gz"