blob: c2d5110cd11a0c93fbd82985bc197bdf5232472c (
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
|
# Maintainer: Valère Monseur <archlinux at vale dot re>
pkgname=python-flask-moment
pkgver=0.11.0
pkgrel=1
pkgdesc="Formatting of dates and times in Flask templates using moment.js"
url="https://github.com/miguelgrinberg/Flask-Moment"
arch=('any')
license=('MIT')
depends=('python-flask')
makedepends=('python-setuptools')
checkdepends=('python-pytest-runner')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/Flask-Moment/archive/v${pkgver}.tar.gz")
sha512sums=('154378a038a3d84e48771dba295030c0b7b292ddca89e3ee17d608fc37f96aa1c5c0fd698352243866c55bd9fb723ccd34c0fa9321b8007117d322fdf47b4419')
build() {
cd Flask-Moment-$pkgver
python setup.py build
}
check() {
cd Flask-Moment-$pkgver
python setup.py pytest
}
package() {
cd Flask-Moment-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|