void-packages/srcpkgs/python-twitter/template
2018-06-09 20:27:15 +02:00

29 lines
863 B
Bash

# Template file for 'python-twitter'
pkgname=python-twitter
version=3.4.2
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=77ebcf2344b622d2fa1e54a851971e030ae313c754863b435e5c1827be97a721
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
python3-twitter_package() {
noarch=yes
pycompile_module="twitter"
depends="python3-future python3-requests python3-requests-oauthlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}