archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-django-debug-toolbar / repos / community-any / PKGBUILD
blob8d55e8fcf668280201f5a7305a40b05beef4ae19
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: Anthony25 <Anthony Ruhier>
3 # Contributor Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
5 _name=django-debug-toolbar
6 pkgname=python-django-debug-toolbar
7 pkgver=4.0.0
8 pkgrel=1
9 pkgdesc='A configurable set of panels that display various debug information about the current request/response.'
10 arch=(any)
11 url='https://github.com/jazzband/django-debug-toolbar'
12 license=(BSD)
13 makedepends=(python-build python-installer python-wheel python-hatchling)
14 checkdepends=(python-jinja python-html5lib)
15 depends=(python-django python-sqlparse)
16 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/jazzband/${_name}/archive/${pkgver}.tar.gz
17         drop-fautly-classifiers.patch)
18 sha256sums=('3b9c02b21284a0c34562f7be9829dac06005cccf9e41cd8cadf9763b1f3f5908'
19             '0414e36d2129794effc8a1f93a920f447e2bcfb333aa01e5898d279f1424a561')
21 prepare() {
22   cd "${_name}-${pkgver}"
23   patch -Np1 -i ${srcdir}/drop-fautly-classifiers.patch
26 build() {
27   cd "${_name}-${pkgver}"
28   python -m build --wheel --no-isolation
31 check() {
32   cd "${_name}-${pkgver}"
33   # Doesn't work due to warnings
34   #PYTHONPATH=. DB_BACKEND=sqlite3 DB_NAME=":memory:" DJANGO_SETTINGS_MODULE=tests.settings python -m django test tests
37 package() {
38   cd "${_name}-${pkgver}"
39   python -m installer --destdir="$pkgdir" dist/*.whl
41   install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
44 # vim:set ts=2 sw=2 et: