blob: 06d268f4a1534ad81f62fba1b29b756195f81d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}
|