summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-flask-login/PKGBUILD48
-rw-r--r--abs/core/python_modules/python-flask-login/__changelog1
2 files changed, 49 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-flask-login/PKGBUILD b/abs/core/python_modules/python-flask-login/PKGBUILD
new file mode 100644
index 0000000..06d268f
--- /dev/null
+++ b/abs/core/python_modules/python-flask-login/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgbase=python-flask-login
+pkgname=('python2-flask-login')
+pkgver=0.4.0
+pkgrel=2
+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')
+
+prepare() {
+ cp -a flask-login{,-py2}
+}
+
+check() {
+# cd "$srcdir"/flask-login
+# nosetests3
+
+ cd "$srcdir"/flask-login-py2
+ # https://github.com/maxcountryman/flask-login/issues/232
+ nosetests2 || warning "Tests failed"
+}
+
+package_python-flask-login() {
+ depends=('python-flask')
+
+ cd flask-login
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_python2-flask-login() {
+ depends=('python2-flask')
+
+ cd flask-login-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 LICENSE "$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
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-flask-login/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff