diff --git a/srcpkgs/python-gitlab/template b/srcpkgs/python-gitlab/template new file mode 100644 index 00000000000..d1d53d9a38b --- /dev/null +++ b/srcpkgs/python-gitlab/template @@ -0,0 +1,28 @@ +# Template file for 'python-gitlab' +pkgname=python-gitlab +version=0.18 +revision=1 +noarch=yes +build_style=python-module +pycompile_module="gitlab" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-requests python-six" +short_desc="Wrapper for GitLab's API (Python2)" +maintainer="Joseph LaFreniere " +homepage="https://github.com/gpocentek/python-gitlab" +license="LGPL-3" +distfiles="${PYPI_SITE}/p/python-gitlab/python-gitlab-${version}.tar.gz" +checksum=d60d67c82fedd8c3e4f0bb8b5241bf2df32307c98fdf2f02a94850e21db2d804 +alternatives="python-gitlab:gitlab:/usr/bin/gitlab2" + +python3-gitlab_package() { + noarch=yes + depends="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* + } +} diff --git a/srcpkgs/python3-gitlab b/srcpkgs/python3-gitlab new file mode 120000 index 00000000000..67de9d9568d --- /dev/null +++ b/srcpkgs/python3-gitlab @@ -0,0 +1 @@ +python-gitlab \ No newline at end of file