sbcl 2.3.0 rebuild
[arch-packages.git] / python-asgiref / trunk / PKGBUILD
blob0f7a7cc05b8d303feab11f5f747208ea8e7dc4c1
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 pkgname=python-asgiref
4 pkgver=3.5.2
5 pkgrel=1
6 pkgdesc="Reference ASGI adapters and channel layers"
7 arch=(any)
8 url="http://github.com/django/asgiref"
9 license=('BSD')
10 makedepends=('python-setuptools')
11 checkdepends=(python-pytest python-pytest-asyncio)
12 depends=('python')
13 source=("https://pypi.io/packages/source/a/asgiref/asgiref-${pkgver}.tar.gz")
14 sha256sums=('4a29362a6acebe09bf1d6640db38c1dc3d9217c68e6f9f6204d72667fc19a424')
16 build() {
17     cd "asgiref-${pkgver}"
18     python setup.py build
21 check() {
22     cd "asgiref-${pkgver}"
23     PYTHONPATH=. pytest .
26 package() {
27     cd "asgiref-${pkgver}"
28     python setup.py install --root=${pkgdir} --optimize=1
30     install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE