archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-amqp / trunk / PKGBUILD
blobdb0586b74582f39e01813c787cd0e76c41b30c8e
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: mutantmonkey <aur@mutantmonkey.in>
4 pkgname=python-amqp
5 pkgver=5.1.1
6 pkgrel=3
7 pkgdesc="Low-level AMQP client for Python (fork of amqplib)"
8 arch=('any')
9 url="https://github.com/celery/py-amqp"
10 license=('BSD')
11 depends=('python-vine')
12 checkdepends=('python-case' 'python-pytest-sugar')
13 source=("https://github.com/celery/py-amqp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('6e075377718c3b8e6c92713cceb580869243c33427efc4e7e6291bbb4daf136c34e13a1c12796064ac30e87dd5dd6f5f2cb17ec320a97adb6c25f03fb3b852fb')
16 build() {
17   cd py-amqp-$pkgver
18   python setup.py build
21 check() {
22   cd py-amqp-$pkgver
23   pytest
26 package() {
27   cd py-amqp-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
32 # vim:set ts=2 sw=2 et: