Features from python-requests-oauthlib are used in the library, so that package needs to be a dependency. python-requests-oauthlib depends on both python-oauthlib and python-requests, so the latter two can safely be removed from the dependency list without fear of any lost functionality.
31 lines
897 B
Bash
31 lines
897 B
Bash
# Template file for 'python-bitbucket-api'
|
|
pkgname=python-bitbucket-api
|
|
version=0.5.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="bitbucket-api-${version}"
|
|
build_style=python-module
|
|
pycompile_module="bitbucket"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-requests-oauthlib python-sh"
|
|
short_desc="Wrapper for BitBucket's REST API (Python2)"
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
homepage="https://github.com/Sheeprider/BitBucket-api"
|
|
license="ISC"
|
|
distfiles="${PYPI_SITE}/b/bitbucket-api/bitbucket-api-${version}.tar.gz"
|
|
checksum=b541d9d7f234074a74214505aff1846eb21e5dd6d3915139e817d4675d34f4e3
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-bitbucket-api_package() {
|
|
noarch=yes
|
|
depends="python3-requests-oauthlib python3-sh"
|
|
pycompile_module="bitbucket"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vlicense LICENSE
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|