mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 09:15:30 +03:00
29 lines
1 KiB
Text
29 lines
1 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
|
|
pkgname=py3-django-cors-headers
|
|
pkgver=3.7.0
|
|
pkgrel=1
|
|
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="e1dc9695f99108f0908d8d348d284f1fd4a8ccbb84b3c748c9ae8d81d6f32ac8ef3417b612710e64ea4c63d464d97ac31a199292ebcdaaec3f3e37ad025ed0de django-cors-headers-3.7.0.tar.gz"
|