blob: 9d56f9bdda60425ac9df8afe34d28ffa2f359c79 (
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
36
37
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-amqp
_pyname=amqp
pkgver=2.5.1
pkgrel=0
pkgdesc="an AMQP implementation"
url="https://pypi.python.org/pypi/amqp/"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-setuptools"
checkdepends="py3-vine py3-case py3-nose py2py3-mock"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
# requires a running rabbitmq sever, which is more complicated than it sounds
options="!check"
replaces="py-amqp" # Backwards compatibility
provides="py-amqp=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
sed -i requirements/test.txt -e 's/pytest-sugar.*//g'
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="0b68d1de0be4ff0015c79a375eaaa742c0cc1453ead11c68bb6e0e0d79f437432154060d0634100e5eb013e667e90e069d8a96dbbc9bb1df32fbc5bdc1686371 amqp-2.5.1.tar.gz"
|