summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24dce884f1151be48cc53fcb7d7a4dba626520b3 (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
32
33
34
35
# Maintainer: Razer <razer[AT]neuf[DOT]fr>

pkgname=python-django-channels-redis
_pypi_pkgname=channels_redis
pkgver=4.2.1
pkgrel=0
pkgdesc="Redis-backed ASGI channel layer implementation"
arch=(any)
url=" http://github.com/django/channels_redis/"
license=('BSD')
makedepends=(
'python-setuptools'
)
depends=(
'python'
'python-django-channels'
'python-redis'
'python-msgpack'
'python-asgiref'
)
optdepends=(
'python-cryptography'
)
source=("https://pypi.io/packages/source/c/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
sha256sums=('8375e81493e684792efe6e6eca60ef3d7782ef76c6664057d2e5c31e80d636dd')

build() {
    cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
    python setup.py build || return 1
}

package() {
    cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
    python setup.py install --root=${pkgdir} --optimize=1 || return 1
}