void-packages/srcpkgs/python-msgpack/template

27 lines
734 B
Bash

# Template file for 'python-msgpack'
pkgname=python-msgpack
version=1.0.0
revision=1
wrksrc="msgpack-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
checkdepends="python3-pytest"
short_desc="Python module for Msgpack serializer (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/msgpack/msgpack-python"
distfiles="${PYPI_SITE}/m/msgpack/msgpack-${version}.tar.gz"
checksum=9534d5cc480d4aff720233411a1f765be90885750b07df772380b34c10ecb5c0
do_check() {
python3 -m pytest
}
python3-msgpack_package() {
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}