summaryrefslogtreecommitdiff
path: root/python-oauth2
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-08-07 08:05:47 +0200
committerErich Eckner <git@eckner.net>2018-08-07 08:08:20 +0200
commitefc22702de0ff7fa08783283555af19359eafe8b (patch)
tree445c8511b65f62a649a4128868720eea497f100d /python-oauth2
parentadc8fff0989b8783bb022e68a87d1bf4b0d49d0a (diff)
downloadarchlinuxewe.git.save-efc22702de0ff7fa08783283555af19359eafe8b.tar.xz
recompile all python packages
Diffstat (limited to 'python-oauth2')
-rw-r--r--python-oauth2/PKGBUILD20
1 files changed, 13 insertions, 7 deletions
diff --git a/python-oauth2/PKGBUILD b/python-oauth2/PKGBUILD
index d47f0567..f631a810 100644
--- a/python-oauth2/PKGBUILD
+++ b/python-oauth2/PKGBUILD
@@ -3,11 +3,19 @@ pkgbase=python-oauth2
_pkgname=python-oauth2
pkgname=(python-oauth2 python2-oauth2)
pkgver=1.1.0
-pkgrel=1
+pkgrel='2'
pkgdesc='framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack/'
url='https://github.com/wndhydrnt/python-oauth2/'
arch=('any')
license=('MIT')
+_deppy2=(
+ 'python2>=2.7'
+ 'python2<2.8'
+)
+_deppy=(
+ 'python>=3.7'
+ 'python<3.8'
+)
_depends=(
'python-mock'
'python-mysql-connector'
@@ -24,6 +32,8 @@ _optdepends=(
'python-redis'
)
makedepends=(
+ "${_deppy[@]}"
+ "${_deppy2[@]}"
"${_depends[@]}"
"${_depends[@]/python/python2}"
"${_makedepends[@]}"
@@ -66,10 +76,8 @@ check() {
}
package_python-oauth2() {
- _pyVer=$(python -V 2>&1 | cut -d' ' -f2 | cut -d. -f2)
depends=(
- "python>=3.${_pyVer}"
- "python<3.$((_pyVer+1))"
+ "${_deppy[@]}"
"${_depends[@]}"
)
optdepends=("${_optdepends[@]}")
@@ -80,10 +88,8 @@ package_python-oauth2() {
}
package_python2-oauth2() {
- _pyVer=$(python2 -V 2>&1 | cut -d' ' -f2 | cut -d. -f2)
depends=(
- "python2>=2.${_pyVer}"
- "python2<2.$((_pyVer+1))"
+ "${_deppy2[@]}"
"${_depends[@]/python/python2}"
)
optdepends=("${_optdepends[@]/python/python2}")