blob: 68c3d8eab9b53d85a8b96197311d94afb84442d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-django-cors-headers
_pkgname=django-cors-headers
pkgver=3.2.1
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="022985bb4bcd554c62f483db65f494cd23eb6175e148df386c84092cc21a679feda9b94f9fce427cb2df0a1629ed9cd621a0b53f64b5fe345b902eb0708e6a23 py3-django-cors-headers-3.2.1.tar.gz"
|