archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-binary-memcached / trunk / PKGBUILD
blobfa3f4b60f7726ab51fc366dfe769abe6f2f52ac2
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-binary-memcached
4 pkgver=0.31.0
5 pkgrel=2
6 arch=('any')
7 pkgdesc='A pure python module to access memcached via its binary protocol with SASL auth support'
8 url='https://github.com/jaysonsantos/python-binary-memcached'
9 license=('MIT')
10 depends=('python-six' 'python-uhashring')
11 makedepends=('python-setuptools' 'python-uhashring')
12 checkdepends=('memcached' 'python-pytest' 'python-trustme')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/jaysonsantos/python-binary-memcached/archive/v$pkgver.tar.gz")
14 sha512sums=('8b83e09b80f0de86e9348c444f650d125878921f079fc2d4e4a79d1ad54a49217401498c80ca65ce864d8bb434dc2f20e2c25ff12bc46e351488508cd752c9fd')
16 prepare() {
17   sed -i '/typing/d' python-binary-memcached-$pkgver/setup.py
20 build() {
21   cd python-binary-memcached-$pkgver
22   python setup.py build
25 check() {
26   cd python-binary-memcached-$pkgver
27   python -m pytest
30 package() {
31   cd python-binary-memcached-$pkgver
32   python setup.py install --root "$pkgdir" --optimize=1
33   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE