aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-amqp/APKBUILD
blob: a3a66b2e2a33b9dc98b6dc9288e1b8f154ffac70 (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.2
pkgrel=1
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="c540ce39c06bb947e55b4afc56567d5fc5a82b65a2f7e2cc1f769f96da74f788d14e1e9c02852a259a4980c36a4524f07166686c0357f96219fd9f8612a6159a  amqp-2.5.2.tar.gz"