1 # Maintainer: Angel Velasquez <angvp@archlinux.org>
2 # Maintainer: Dan McGee <dan@archlinux.org>
3 # Contributor: Shahar Weiss <sweiss4@gmx.net>
6 pkgname=('python-django')
9 pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
12 url="http://www.djangoproject.com/"
13 checkdepends=('python-pytest' 'python-tblib')
14 makedepends=('python' 'python-setuptools')
15 depends=('python' 'python-pytz' 'python-sqlparse' 'python-asgiref')
16 # TODO: package and add python-pymemcache https://docs.djangoproject.com/en/dev/topics/cache/
17 optdepends=('python-psycopg2: for PostgreSQL backend'
18 'python-argon2_cffi: for Argon2 password hashing support')
19 source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
20 sha512sums=('1050511bd9345519d8382a58e4e6ccc39cd41a6777c9575540dcc655f11dd36316cfc2431f94da9ac4a0fa6e41640a9131c8d49df4188a2ffc26f7ff56d40a6a')
23 cd "$srcdir/Django-$pkgver"
27 package_python-django() {
28 cd "$srcdir/Django-$pkgver"
30 python setup.py install --root="$pkgdir" --optimize=1
32 ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py
33 ln -s django-admin "$pkgdir"/usr/bin/django-admin3
34 install -Dm644 extras/django_bash_completion \
35 "$pkgdir"/usr/share/bash-completion/completions/django-admin.py
36 ln -s django-admin.py \
37 "$pkgdir"/usr/share/bash-completion/completions/django-admin
38 ln -s django-admin.py \
39 "$pkgdir"/usr/share/bash-completion/completions/manage.py
41 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
45 cd "$srcdir/Django-$pkgver"
46 PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'