aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pika/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-pika/APKBUILD')
-rw-r--r--testing/py3-pika/APKBUILD51
1 files changed, 24 insertions, 27 deletions
diff --git a/testing/py3-pika/APKBUILD b/testing/py3-pika/APKBUILD
index 6f637fb5ef..b378c0c3eb 100644
--- a/testing/py3-pika/APKBUILD
+++ b/testing/py3-pika/APKBUILD
@@ -1,41 +1,38 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-pika
+pkgname=py3-pika
_pkgname=pika
-pkgver=0.9.14
+pkgver=1.1.0
pkgrel=0
-pkgdesc="A Python AMQP client library"
+pkgdesc="Python3 AMQP client library"
+options="!check" # failures=1
url="https://pika.readthedocs.org"
arch="noarch"
-license="MPL-2.0"
-depends="python2 py-tornado py-twisted py-ev"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+license="BSD-3-Clause"
+depends="python3 py3-tornado py3-twisted"
+makedepends="py3-setuptools"
+checkdepends="
+ py3-coverage
+ py3-codecov
+ py3-mock
+ py3-nose
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/pika/pika/archive/$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+replaces="py-pika" # Backwards compatibility
+provides="py-pika=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ python3 setup.py build
+}
+
+check() {
+ nosetests
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-md5sums="b99aad4b88961d3c7e4876b8327fc97c pika-0.9.14.tar.gz"
-sha256sums="5e2be3cb4ebdc267abd8e481c09bc30e95919a24e3a5f3f69744959490ead0e3 pika-0.9.14.tar.gz"
-sha512sums="c5b279c48341cef7b86d11414159de778afd3cf043d0ba8ba45adff6e8fbf72ec39642ed533c4d3674df3555fdaa0d7ff32a1844001bc56c1c380643d075870c pika-0.9.14.tar.gz"
+sha512sums="35d001f9e16ed3d2a68e2328596a158e1f6a145dcedf6502e9cd17158baa80dcef53e4c1e95b90e2e24b0c132a0a8c3dd19deb293ba1884980016439c1b2495c py3-pika-1.1.0.tar.gz"