void-packages/srcpkgs/python-tweepy/template

35 lines
866 B
Bash

# Template file for 'python-tweepy'
pkgname=python-tweepy
version=3.6.0
revision=1
wrksrc="tweepy-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-pip python3-pip"
depends="python-requests-oauthlib"
checkdepends="python3-requests-oauthlib"
short_desc="Twitter library for python"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://pypy.python.org/pypi/tweepy/3.5.0"
distfiles="https://github.com/tweepy/tweepy/archive/v${version}.tar.gz"
checksum=70f0c02b6249a3a7551328f731f1b90c822a780eb2fd15eaef4510a477c9f33c
noarch=yes
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-tweepy_package() {
noarch=yes
depends="python3-requests-oauthlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}