From a583e5577e985e448e6266c31d5b88a31e1be4e3 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 19 Jul 2017 03:21:47 +0000
Subject: python-flask-login: initial inclusion. dep of flexget

---
 .../python_modules/python-flask-login/PKGBUILD     | 48 ++++++++++++++++++++++
 .../python_modules/python-flask-login/__changelog  |  1 +
 2 files changed, 49 insertions(+)
 create mode 100644 abs/core/python_modules/python-flask-login/PKGBUILD
 create mode 100644 abs/core/python_modules/python-flask-login/__changelog

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
-- 
cgit v0.12

