2023-09-29 11:45:58 +00:00

41 lines
1.2 KiB
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-msgpack
_pkgname=msgpack-python
pkgver=1.0.7
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-gpep517 py3-setuptools cython py3-wheel"
checkdepends="py3-pytest-xdist py3-pluggy"
subpackages="$pkgname-pyc"
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() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
ea2a00519972cb07d1653f3b8374dadd8a97bdca3ced1b1e1b1939410decdf81ab4fb8b17a5a2dd65d54ba5644a449c2c92be7f536f5597d507a327d8957922f msgpack-python-1.0.7.tar.gz
"