mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
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 cython"
|
|
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
|
|
|
|
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
|
|
env PYTHONPATH="$PWD/build/lib.linux-$_pyarch-$_py3ver" pytest-3 test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="be4a65592acf3c2a4fcd5d6c603f5a3346f0bccb4864d82a729d47308a11d990f7137e66a9d6df7309a892d189f62e8a9efbda022b7ef2a09338012aa1634b6d msgpack-python-0.6.2.tar.gz"
|