# Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=py3-msgpack _pkgname=msgpack-python pkgver=0.6.1 pkgrel=5 pkgdesc="A Python module for MessagePack serialization/deserialization" url="https://msgpack.org/" arch="all" license="Apache-2.0" depends="python3" makedepends="python3-dev py3-setuptools cython3" checkdepends="py3-pytest py3-pluggy" source="$_pkgname-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/v$pkgver.tar.gz" builddir="$srcdir/msgpack-python-$pkgver" replaces="py-msgpack" # Backwards compatibility provides="py-msgpack=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { local _pyarch case "$CARCH" in x86_64|aarch64|ppc64le) _pyarch="$CARCH" ;; x86) _pyarch=i686 ;; armhf|armv7) _pyarch=armv8l ;; s390x) _pyarch=s390x;; esac env PYTHONPATH="$PWD/build/lib.linux-$_pyarch-3.7" pytest-3 test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="cce526f103b0e2698e1d3931f34c18ebfe79dedd486aa3d051ce80b80e0fc73dc5961645205525002b24990b1c74cb17bee4be1b7d7a45fb232cbf108f929982 msgpack-python-0.6.1.tar.gz"