vp-build/srcpkgs/python-twitter/template

37 lines
1.1 KiB
Bash

# Template file for 'python-twitter'
pkgname=python-twitter
version=3.2.1
revision=1
noarch=yes
build_style=python-module
pycompile_module="twitter"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-future python-requests python-requests-oauthlib"
short_desc="Python2 wrapper around the Twitter API"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/bear/python-twitter"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=f621e035e114435114967a35a34d3346e59544df4c69fbedb1e382d9677087db
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
python3-twitter_package() {
noarch=yes
pycompile_module="twitter"
replaces="python3.4-twitter>=0"
depends="python3-future python3-requests python3-requests-oauthlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-twitter_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-twitter>=${version}_${revision}"
}