# Template file for 'python-tweepy'
pkgname=python-tweepy
version=3.6.0
revision=2
noarch=yes
wrksrc="tweepy-${version}"
build_style=python-module
pycompile_module="tweepy"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-requests-oauthlib python-six python-pysocks"
short_desc="Twitter library for Python2"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/tweepy/tweepy"
distfiles="https://github.com/tweepy/tweepy/archive/v${version}.tar.gz"
checksum=70f0c02b6249a3a7551328f731f1b90c822a780eb2fd15eaef4510a477c9f33c

post_install() {
	vlicense LICENSE
	# remove examples from site-packages root
	rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
}

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