void-packages/srcpkgs/python-requests-oauthlib/template

33 lines
1.0 KiB
Bash

# Template file for 'python-requests-oauthlib'
pkgname=python-requests-oauthlib
version=1.3.0
revision=2
archs=noarch
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="bra1nwave <bra1nwave@protonmail.com>"
license="ISC"
homepage="https://github.com/requests/requests-oauthlib"
changelog="https://raw.githubusercontent.com/requests/requests-oauthlib/master/HISTORY.rst"
distfiles="${PYPI_SITE}/r/requests-oauthlib/requests-oauthlib-${version}.tar.gz"
checksum=b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a
post_install() {
vlicense LICENSE
}
python3-requests-oauthlib_package() {
archs=noarch
depends="python3-requests python3-oauthlib"
pycompile_module="requests_oauthlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
vlicense LICENSE
}
}