# Template file for 'python-discogs_client'
pkgname=python-discogs_client
version=2.2.0
revision=3
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-requests python-six python-oauthlib"
pycompile_module="discogs_client"
short_desc="Official Discogs API client for Python2"
maintainer="Georg Schabel <gescha@posteo.de>"
homepage="https://github.com/discogs/discogs_client"
license="2-clause-BSD"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=b31e3fd8f17f46b9c7221182ed6be96774a334ac8be4e434ee99943d27170945

post_install() {
	vlicense LICENSE
}

python3-discogs_client_package() {
	noarch=yes
	depends="python3-requests python3-six python3-oauthlib"
	pycompile_module="discogs_client"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
