38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'python-oauthlib'
|
|
pkgname=python-oauthlib
|
|
version=2.0.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="oauthlib"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Python2 implementation of the OAuth request-signing logic"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="3-clause-BSD"
|
|
homepage="https://github.com/idan/oauthlib"
|
|
distfiles="${PYPI_SITE}/o/oauthlib/oauthlib-${version}.tar.gz"
|
|
checksum=b3b9b47f2a263fe249b5b48c4e25a5bce882ff20a0ac34d553ce43cff55b53ac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-oauthlib_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="oauthlib"
|
|
replaces="python3.4-oauthlib>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-oauthlib_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-oauthlib>=${version}_${revision}"
|
|
}
|