1 # Maintainer: David Runge <dvzrv@archlinux.org>
4 pkgname=python-django-mailman3
6 _commit=37b1ab762440d66eaf501beedd5c7d0c83e213a7 # refs/tags/1.3.9
8 pkgdesc="Libraries and templates to Django-based interfaces interacting with Mailman"
10 url="https://gitlab.com/mailman/django-mailman3"
12 depends=(python-django python-django-allauth python-django-gravatar
13 python-mailmanclient python-pytz)
14 makedepends=(git python-build python-installer python-setuptools python-wheel)
15 checkdepends=(python-pytest)
16 source=(git+https://gitlab.com/mailman/django-mailman3#tag=$_commit?signed)
19 validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <raj.abhilash1@gmail.com>
23 git describe | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g'
28 python -m build --wheel --no-isolation
33 export PYTHONPATH="build:$PYTHONPATH"
34 django-admin test --settings=django_mailman3.tests.settings_test django_mailman3
38 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
41 python -m installer --destdir="$pkgdir" dist/*.whl
42 install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"