# Contributor: Leonardo Arena # Maintainer: pkgname=py3-django-cors-headers _pkgname=django-cors-headers pkgver=3.2.0 pkgrel=0 pkgdesc="Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)" options="!check" # Requires running django instance url="https://github.com/OttoYiu/django-cors-headers" arch="noarch" license="MIT" depends="py3-django" makedepends="py3-setuptools" checkdepends="py3-tz py3-mock py3-pytest py3-coverage py3-pytest-cov" source="$pkgname-$pkgver.tar.gz::https://github.com/ottoyiu/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { python3 setup.py --quiet build } check() { python3 runtests.py ./tests } package() { python3 setup.py --quiet install --prefix=/usr --root="$pkgdir" } sha512sums="7a915911dcd52e858fd806634885ed097d5f481b40a1d922d99de0e2f680137d90250066bf5bb6be469f52cf285174bc14151b04d643260016bc86786de07361 py3-django-cors-headers-3.2.0.tar.gz"