summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/python_modules/python-flask-login/PKGBUILD27
-rw-r--r--abs/core/python_modules/python-flask-login/__changelog1
2 files changed, 14 insertions, 14 deletions
diff --git a/abs/core/python_modules/python-flask-login/PKGBUILD b/abs/core/python_modules/python-flask-login/PKGBUILD
index 06d268f..23e4d9c 100644
--- a/abs/core/python_modules/python-flask-login/PKGBUILD
+++ b/abs/core/python_modules/python-flask-login/PKGBUILD
@@ -2,27 +2,28 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-flask-login
-pkgname=('python2-flask-login')
-pkgver=0.4.0
-pkgrel=2
+pkgname=('python2-flask-login' 'python-flask-login')
+pkgver=0.4.1
+pkgrel=1
pkgdesc="User session management for Flask."
arch=('any')
url="https://pythonhosted.org/Flask-Login/"
license=('MIT')
-makedepends=('python2-setuptools' 'python2-flask' 'git')
-checkdepends=('python2-nose' 'python2-mock' 'python2-blinker')
-source=("git+https://github.com/maxcountryman/flask-login.git#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-blinker'
+ 'python2-blinker' 'python-semantic-version' 'python2-semantic-version')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/maxcountryman/flask-login/archive/$pkgver.tar.gz")
+sha512sums=('c87a2948ac37439ddd76f3f11584bdd5910cb00e96a7400343cf4dadc5a0f9bc84d40bdc068d2e8c05bd5a510046e18473e9ad71502c5039a5f05b371ce9bb4c')
prepare() {
- cp -a flask-login{,-py2}
+ cp -a flask-login-$pkgver{,-py2}
}
check() {
-# cd "$srcdir"/flask-login
-# nosetests3
+ cd "$srcdir"/flask-login-$pkgver
+ nosetests3
- cd "$srcdir"/flask-login-py2
+ cd "$srcdir"/flask-login-$pkgver-py2
# https://github.com/maxcountryman/flask-login/issues/232
nosetests2 || warning "Tests failed"
}
@@ -30,7 +31,7 @@ check() {
package_python-flask-login() {
depends=('python-flask')
- cd flask-login
+ cd flask-login-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
@@ -40,7 +41,7 @@ package_python-flask-login() {
package_python2-flask-login() {
depends=('python2-flask')
- cd flask-login-py2
+ cd flask-login-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
diff --git a/abs/core/python_modules/python-flask-login/__changelog b/abs/core/python_modules/python-flask-login/__changelog
deleted file mode 100644
index 60db758..0000000
--- a/abs/core/python_modules/python-flask-login/__changelog
+++ /dev/null
@@ -1 +0,0 @@
-PKGBUILD: remove py3 stuff