8ddd61d984
[ci skip]
29 lines
868 B
Bash
29 lines
868 B
Bash
# Template file for 'python-twitter'
|
|
pkgname=python-twitter
|
|
version=3.5
|
|
revision=1
|
|
archs=noarch
|
|
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 <pbui@github.bx612.space>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/bear/python-twitter"
|
|
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=45855742f1095aa0c8c57b2983eee3b6b7f527462b50a2fa8437a8b398544d90
|
|
|
|
pre_build() {
|
|
sed -i '/setup_requires=/d' setup.py
|
|
}
|
|
|
|
python3-twitter_package() {
|
|
archs=noarch
|
|
pycompile_module="twitter"
|
|
depends="python3-future python3-requests python3-requests-oauthlib"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|