Date: Monday, January 27, 2020 @ 19:25:52 Author: kpcyrd Revision: 556507
archrelease: copy trunk to community-any Added: python-flask-httpauth/repos/community-any/ python-flask-httpauth/repos/community-any/PKGBUILD (from rev 556506, python-flask-httpauth/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: python-flask-httpauth/repos/community-any/PKGBUILD (from rev 556506, python-flask-httpauth/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2020-01-27 19:25:52 UTC (rev 556507) @@ -0,0 +1,33 @@ +# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org> + +pkgname=python-flask-httpauth +_pkgname=Flask-HTTPAuth +pkgver=3.3.0 +pkgrel=2 +pkgdesc='Basic, Digest and Token HTTP authentication for Flask routes' +url='https://github.com/miguelgrinberg/Flask-HTTPAuth' +arch=('any') +license=('MIT') +depends=('python' 'python-flask') +checkdepends=('python-pytest') +source=(https://github.com/miguelgrinberg/${_pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('1303351a278799eb885afc9160d4569f73d13212cab2defbc818df6c39ad9284703da703f52c63fb032096a9773f429216e47cc26513730389585761b8f9953b') +b2sums=('d6e259fcc06a92e2a8f065118f32fd72a11ca2d3a12ebb641a461cdd8554cd954799e2e4ddcd9f7ac904accbc226f5a19374e150e50ca30d65e3f5f3009182d6') + +build() { + cd ${_pkgname}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkgname}-${pkgver} + pytest tests/ +} + +package() { + cd ${_pkgname}-${pkgver} + python setup.py install --skip-build -O1 --root="${pkgdir}" + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: