void-packages/srcpkgs/python-twitter/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

29 lines
861 B
Bash

# Template file for 'python-twitter'
pkgname=python-twitter
version=3.3
revision=2
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=a9f2bd038a05ba384fa03e39949d1445349771ce7897aeb3c6d8774beba08185
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*
}
}