summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f56fc4d002c971f6ebbf72b4093ff4ef9f69013 (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: Blair Bonnett <blair dot bonnett at gmail dot com>

pkgname=python-aiohttp-session
pkgdesc='Web sessions for aiohttp.web'
pkgver=2.12.0
pkgrel=1
url='http://aiohttp-session.readthedocs.io/'
license=('Apache')
arch=('any')
depends=('python-aiohttp')
optdepends=(
  'python-aiomcache: Memcached session storage'
  'python-cryptography: store sessions in encrypted cookies'
  'python-pynacl: NaCL encrypted JSON session storage'
  'python-redis: Redis session storage'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')

_pypi=aiohttp-session
source=(
  "https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz"
)
sha256sums=(
  '0ccd11a7c77cb9e5a61f4daacdc9170d561112f9cfaf9e9a2d9867c0587d1950'
)

build() {
  cd "aiohttp-session-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "aiohttp-session-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}