void-packages/srcpkgs/python-requests-oauthlib/template
Alessio Sergi 32e5a04be6 python-requests-oauthlib: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-16 23:43:19 +02:00

38 lines
1.2 KiB
Bash

# Template file for 'python-requests-oauthlib'
pkgname=python-requests-oauthlib
version=0.7.0
revision=3
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="requests_oauthlib"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-requests python-oauthlib"
short_desc="OAuthlib authentication support for Requests (Python2)"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="ISC"
homepage="https://github.com/requests/requests-oauthlib"
distfiles="${PYPI_SITE}/r/requests-oauthlib/requests-oauthlib-${version}.tar.gz"
checksum=198807c592b75438485c890f0403b1a8e363c86be1a87da687be18991a6850b0
post_install() {
vlicense LICENSE
}
python3-requests-oauthlib_package() {
noarch=yes
depends="python3-requests python3-oauthlib"
pycompile_module="requests_oauthlib"
replaces="python3.4-requests-oauthlib>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-requests-oauthlib_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-requests-oauthlib>=${version}_${revision}"
}