void-packages/srcpkgs/python-oauthlib/template
2016-06-02 23:54:10 +02:00

33 lines
880 B
Bash

# Template file for 'python-oauthlib'
pkgname=python-oauthlib
version=1.1.2
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="oauthlib"
hostmakedepends="python-setuptools python3.4-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=0e83e91d9e77a396dc178eddba0c4abf75e465761804bfcdb20b977284bcb0bb
post_install() {
vlicense LICENSE
}
python3.4-oauthlib_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="oauthlib"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}