mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
1 KiB
Text
34 lines
1 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-msgpack
|
|
_pkgname=msgpack-python
|
|
pkgver=1.0.4
|
|
pkgrel=1
|
|
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() {
|
|
PYTHONPATH="$(echo "$PWD"/build/lib.linux-*)" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
206351b8b1f8070c601849b728ea63ced4fec91732856f69f88e3c05c769bcd0d868fe94d7549c8c100b82e9d732379c133bf8f438632647ff2e7812f936783d msgpack-python-1.0.4.tar.gz
|
|
"
|