void-packages/srcpkgs/python-gitlab/template

35 lines
1.1 KiB
Bash

# Template file for 'python-gitlab'
pkgname=python-gitlab
version=1.8.0
revision=1
archs=noarch
build_style=python-module
pycompile_module="gitlab"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-requests python-six"
checkdepends="${depends} python-httmock python-mock"
short_desc="Wrapper for GitLab's API (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
license="LGPL-3.0-or-later"
homepage="https://github.com/gpocentek/python-gitlab"
changelog="https://raw.githubusercontent.com/python-gitlab/python-gitlab/master/ChangeLog.rst"
distfiles="${PYPI_SITE}/p/python-gitlab/python-gitlab-${version}.tar.gz"
checksum=a6b03bc53f6e2e22b88d5ff9772b1bb360570ec82752f1def3d6eb60cda093e7
alternatives="python-gitlab:gitlab:/usr/bin/gitlab2"
do_check() {
python2 setup.py test
}
python3-gitlab_package() {
archs=noarch
depends="python3-setuptools python3-requests python3-six"
pycompile_module="gitlab"
short_desc="${short_desc/Python2/Python3}"
alternatives="python-gitlab:gitlab:/usr/bin/gitlab3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}