36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'python-tweepy'
|
|
pkgname=python-tweepy
|
|
version=3.7.0
|
|
revision=1
|
|
archs=noarch
|
|
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="${PYPI_SITE}/t/tweepy/tweepy-${version}.tar.gz
|
|
https://raw.githubusercontent.com/tweepy/tweepy/master/LICENSE>LICENSE.txt"
|
|
checksum="fe85a79f58a01dd335968523b91c5fce760e7fe78bf25a6e71c72204fe499d0b
|
|
deeeae0dcc22dbf108a801b8dc4e484bcc1bfb541b1a4f4615ab3e61def44fb5"
|
|
|
|
post_install() {
|
|
vlicense ../LICENSE.txt
|
|
# remove examples from site-packages root
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
|
|
}
|
|
|
|
python3-tweepy_package() {
|
|
archs=noarch
|
|
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.txt
|
|
}
|
|
}
|