summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acc4ef890284aa53d3f9ff302215618edef85037 (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
# Maintainer: Bao Trinh <qubidt at gmail dot com>
# Contributor: Lisa White <legeana@liri.ie>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Aleksey Filippov <sarum9in@gmail.com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>

pkgname=python-pika
pkgver=1.3.2
pkgrel=1
pkgdesc="A pure-Python implementation of the AMQP 0-9-1 protocol"
arch=('any')
url="http://pika.readthedocs.org/"
license=('GPL')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=('python-nose2' 'python-nose' 'python-gevent' 'python-twisted' 'python-tornado')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname#python-}/${pkgname#python-}/archive/${pkgver}/${pkgname#python-}-${pkgver}.tar.gz")
sha256sums=('5eb71b9a0047c77d99378e525a2041fc50aae4a177b060f9825b3e2fdcc96fc4')

build() {
  cd "${pkgname#python-}-${pkgver}"
  python -m build --wheel --no-isolation
}

check() {
  cd "${pkgname#python-}-${pkgver}"
  nose2 tests.unit
}

package() {
  cd "${pkgname#python-}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}