aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-flask-babel
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-08 14:31:24 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-08 14:31:24 -0300
commitd954292042970bc2ecf12362a6aac0eecd798fbd (patch)
tree637e9c2bfcc0a3fada6343b743f8e5238c7ff1b4 /testing/py3-flask-babel
parent10ce62a6d9af98f9fdd7448a205c5040f8e1dc52 (diff)
downloadaports-d954292042970bc2ecf12362a6aac0eecd798fbd.tar.bz2
aports-d954292042970bc2ecf12362a6aac0eecd798fbd.tar.xz
testing/py3-flask-babel: drop py2
Diffstat (limited to 'testing/py3-flask-babel')
-rw-r--r--testing/py3-flask-babel/APKBUILD46
1 files changed, 11 insertions, 35 deletions
diff --git a/testing/py3-flask-babel/APKBUILD b/testing/py3-flask-babel/APKBUILD
index 9e71377a09..4c1c758cde 100644
--- a/testing/py3-flask-babel/APKBUILD
+++ b/testing/py3-flask-babel/APKBUILD
@@ -1,53 +1,29 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-flask-babel
+pkgname=py3-flask-babel
_pkgname=Flask-Babel
pkgver=0.12.2
-pkgrel=1
+pkgrel=2
pkgdesc="Flask i18n/l10n support"
-url="https://pypi.python.org/pypi/Flask-Babel"
+options="!check" # No testsuite on PYPI tarball, GitHub tarball are outdated
+url="https://github.com/python-babel/flask-babel"
arch="noarch"
license="BSD-3-Clause"
-depends="py-flask py-jinja2"
-makedepends="python2-dev python3-dev py-setuptools"
-checkdepends="py-babel py-tz"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3 py3-flask py3-jinja2 py3-babel"
+makedepends="py3-setuptools"
+checkdepends="py3-tz"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-flask-babel" # Backwards compatibility
+provides="py-flask-babel=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- python2 setup.py build
python3 setup.py build
}
-check() {
- python2 setup.py test
- python3 setup.py test
-}
-
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="c43bf5cf6c66e3a8a52298f52bd6300cf0b0c53a1f0fb5862b1bcf8a9800ea0e043c9f85125bb9eb5c281a3c0583c63f0f9653792204883a6f82080547b37104 Flask-Babel-0.12.2.tar.gz"