Package request: python-gitlab
Python wrapper for Gitlab API.
Source: https://github.com/python-gitlab/python-gitlab
My attempt so far (tests are failing for pytest-console-scripts
):
pkgname=py3-gitlab
_pyname=${pkgname/py3/python}
pkgver=3.5.0
pkgrel=0
pkgdesc="Python wrapper for Gitlab API"
url="https://github.com/python-gitlab/python-gitlab"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
python3
py3-requests
py3-requests-toolbelt
"
makedepends="py3-setuptools"
checkdepends="
py3-pytest
py3-pytest-cov
py3-pytest-console-scripts
py3-coverage
py3-responses
py3-yaml
"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-gitlab/python-gitlab/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 -m pytest \
--ignore=tests/functional/ \ # need docker
--ignore=tests/smoke/test_dists.py # fail to run setup.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
161c7ed7c7bab580318bc89b41478c8b9c03ff78808aae6ef1aa6ac5bc4157ebad9983529ef5b44e10f259f1f1d92b30cdbb81912b68ae49bd026e5dcd90b432 py3-gitlab-3.5.0.tar.gz
"
pkgname=py3-pytest-console-scripts
_pyname=${pkgname#py3-}
pkgver=1.3.1
pkgrel=0
pkgdesc="Pytest plugin for testing console scripts"
url="https://github.com/kvas-it/pytest-console-scripts"
arch="noarch"
license="MIT"
options="!check"
depends="python3 py3-pytest"
makedepends="py3-setuptools_scm"
source="https://pypi.python.org/packages/source/p/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
344e9379976d9a7541f9683f7646b47f7fc25d2ab8d941351811ada7fddd77497cc24f4bc6a6d5ab9388dd5b289ed125bcbfad869009fb3b80aaaa1b951d656d pytest-console-scripts-1.3.1.tar.gz
"
Edited by Hoang Nguyen