2021-09-28 15:53:28 +00:00

32 lines
1.0 KiB
Plaintext

# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-django-cors-headers
pkgver=3.8.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="https://files.pythonhosted.org/packages/source/d/django-cors-headers/django-cors-headers-$pkgver.tar.gz"
builddir="$srcdir"/django-cors-headers-$pkgver
build() {
python3 setup.py --quiet build
}
check() {
python3 runtests.py ./tests
}
package() {
python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}
sha512sums="
b763e679558af12cb7e22c137e45a9b3f2ccc7cae2ddaa06792b35e721fae3c6f43daf4b015b567496f93d4f32b4751c56db06edf4e74a535c4fb9a1280da763 django-cors-headers-3.8.0.tar.gz
"