# Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=py3-msgpack _pkgname=msgpack-python pkgver=0.6.2 pkgrel=0 pkgdesc="Python3 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="be4a65592acf3c2a4fcd5d6c603f5a3346f0bccb4864d82a729d47308a11d990f7137e66a9d6df7309a892d189f62e8a9efbda022b7ef2a09338012aa1634b6d msgpack-python-0.6.2.tar.gz"