void-packages/srcpkgs/python-gitlab/template

29 lines
921 B
Bash
Raw Normal View History

2017-02-20 18:06:23 +01:00
# Template file for 'python-gitlab'
pkgname=python-gitlab
2017-07-28 12:34:22 +02:00
version=0.21.2
2017-08-28 06:39:04 +02:00
revision=2
2017-02-20 18:06:23 +01:00
noarch=yes
build_style=python-module
pycompile_module="gitlab"
hostmakedepends="python-setuptools python3-setuptools"
2017-07-28 12:34:22 +02:00
depends="python-setuptools python-requests python-six"
2017-02-20 18:06:23 +01:00
short_desc="Wrapper for GitLab's API (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
homepage="https://github.com/gpocentek/python-gitlab"
license="LGPL-3"
distfiles="${PYPI_SITE}/p/python-gitlab/python-gitlab-${version}.tar.gz"
2017-07-28 12:34:22 +02:00
checksum=abc9a89d29553529e95356260b445cdd49b46423e85a6d3eada4a35b14e309b7
2017-02-20 18:06:23 +01:00
alternatives="python-gitlab:gitlab:/usr/bin/gitlab2"
python3-gitlab_package() {
noarch=yes
2017-07-28 12:34:22 +02:00
depends="python3-setuptools python3-requests python3-six"
2017-02-20 18:06:23 +01:00
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*
}
}