# Template file for 'python-gogs-client' pkgname=python-gogs-client version=1.0.4 revision=1 noarch=yes wrksrc="gogs_client-${version}" build_style=python-module pycompile_module="gogs_client" hostmakedepends="python-setuptools python3-setuptools" depends="python-future python-requests" short_desc="Python2 library for interacting with a gogs server" maintainer="Joseph LaFreniere " homepage="https://github.com/unfoldingWord-dev/python-gogs-client" license="MIT" distfiles="${PYPI_SITE}/g/gogs_client/gogs_client-${version}.tar.gz" checksum=4e76ac6193e662efe6f4c09777880569bd31e0f9b62088765b669a684452bcd2 post_install() { # License not currently in PyPI: https://github.com/unfoldingWord-dev/python-gogs-client/issues/5 $XBPS_FETCH_CMD https://raw.githubusercontent.com/unfoldingWord-dev/python-gogs-client/master/LICENSE.txt vlicense LICENSE.txt } python3-gogs-client_package() { noarch=yes depends="python3-future python3-requests" pycompile_module="gogs_client" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENSE.txt } }