summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7c985c3a7d6c87e4bf725085a93496296fda1fc (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: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=python-wtforms-alchemy
_pkgname=wtforms-alchemy
pkgver=0.19.0
pkgrel=1
pkgdesc='Tools for creating wtforms from sqlalchemy models'
arch=('any')
url="https://wtforms-alchemy.readthedocs.io"
license=('BSD-3-Clause')
makedepends=(python-build python-installer python-setuptools python-wheel)
depends=(python-phonenumbers python-sqlalchemy python-sqlalchemy-utils python-wtforms python-wtforms-components) 
checkdepends=(python-pytest python-sqlalchemy-i18n python-wtforms-test)
source=("$pkgname-$pkgver.tar.gz::https://github.com/kvesteri/wtforms-alchemy/archive/$pkgver.tar.gz")
sha256sums=('969fd003d3af4f0dfe1daff1db27e0d74b3d60fe10dd798defa3899eff7aa866')

build() {
    cd "${_pkgname}-${pkgver}"
    python -m build -wn
}

package() {
    cd "${_pkgname}-${pkgver}"
    python -m installer dist/*.whl --dest="${pkgdir}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

check() {
    cd "${_pkgname}-${pkgver}"
    pytest tests
}