mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 09:45:12 +03:00
39 lines
1,016 B
Text
39 lines
1,016 B
Text
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
_pkgname=django-cors-headers
|
|
pkgname="py3-$_pkgname"
|
|
pkgver=3.13.0
|
|
pkgrel=1
|
|
pkgdesc="Django App that adds Cross-Origin Resource Sharing (CORS) headers to responses"
|
|
url="https://github.com/adamchainz/django-cors-headers"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-django
|
|
"
|
|
makedepends="py3-setuptools_scm"
|
|
checkdepends="
|
|
py3-coverage
|
|
py3-pytest
|
|
py3-pytest-django
|
|
py3-pytest-randomly
|
|
"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
options="!check" # pytest-django and pytest-randomly are not on the repositories yet
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root "$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
2df533578cf67f10853fd7c3d1baba579b0149db18673bf71e7f3d47ebcc9a1db4a7736e8922529ff6694a8e75db8dd91bd069a2e4048a7f0f1b689bca5aad53 django-cors-headers-3.13.0.tar.gz
|
|
"
|