# Contributor: Andrew Wilcox # Maintainer: Natanael Copa pkgname=py3-django _pkgname=Django pkgver=1.11.23 pkgrel=2 pkgdesc="A high-level Python3 Web framework" url="https://djangoproject.com/" arch="noarch" license="BSD-3-Clause" depends="python3 py3-tz" makedepends="py3-setuptools" options="!check" # some depends missing, others in community/testing source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-django" # Backwards compatibility provides="py-django=$pkgver-r$pkgrel" # Backwards compatibility # secfixes: # 1.11.23-r0: # - CVE-2019-14232 # - CVE-2019-14233 # - CVE-2019-14234 # - CVE-2019-14235 # 1.11.22-r0: # - CVE-2019-12781 # 1.8.16-r0: # - CVE-2016-9013 # - CVE-2016-9014 # 1.10.7-r0: # - CVE-2017-7233 # - CVE-2017-7234 # 1.11.5-r0: # - CVE-2017-12794 # 1.11.10-r0: # - CVE-2018-6188 # 1.11.11-r0: # - CVE-2018-7536 # - CVE-2018-7537 # 1.11.15-r0: # - CVE-2018-14574 # 1.11.18-r0: # - CVE-2019-3498 # 1.11.19-r0: # - CVE-2019-6975 # 1.11.21-r0: # - CVE-2019-12308 build() { python3 setup.py build } check() { cd tests python3 runtests.py } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin ln -s django-admin "$pkgdir"/usr/bin/django-admin-3 } sha512sums="c4c5d82e4ecf1a100637ac32eafd3fb0d7690ba5c0cb884846f31c434c0cb1282d94149e031c577d676570f3b331c2a320d58f34f40ac02deae089c4b61c65ea Django-1.11.23.tar.gz"