aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-aiohttp-cors/APKBUILD
blob: c47d80b1b7a0ae5fd753cb2e27086cf45b304d5a (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
31
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-aiohttp-cors
_pkgname=aiohttp_cors
pkgver=0.5.3
pkgrel=0
pkgdesc="CORS support for aiohttp"
url="https://github.com/aio-libs/aiohttp-cors"
arch="noarch"
license="ASL 2.0"
depends="py3-aiohttp"
makedepends="python3-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-cors/archive/v$pkgver.tar.gz"
builddir="$srcdir"/aiohttp-cors-$pkgver

check() {
	cd "$builddir"
	python3 setup.py check
}

build() {
	cd "$builddir"
	python3 setup.py build || return 1
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0813ea48de714c85e361dfdaeef1a69526f7446dcc4ce637139cd333dedea58c635f85cfad1c3ccfb0df6e573f0351f282fdbd9726211d5915ed2ba120206b09  aiohttp_cors-0.5.3.tar.gz"