summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efe108716a421bacdee6fa02c2ccd1c5ff2d42df (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
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate
pkgname=python-flask-httpauth
pkgver=4.8.0
pkgrel=1
pkgdesc="Basic and Digest HTTP authentication for Flask routes"
url="https://github.com/miguelgrinberg/Flask-HTTPAuth"
license=('MIT')
arch=('any')
depends=('python' 'python-flask')
makedepends=('python-build' 'python-installer')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/Flask-HTTPAuth/archive/v${pkgver}.tar.gz")

sha256sums=('1984f9ef025482d06a19f6d4ad6852095fe7602e97c59511070f9c4e4652cb9e')

build() {
	cd "$srcdir/Flask-HTTPAuth-$pkgver"
	python -m build
}

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