void-packages/srcpkgs/python-msgpack/template

29 lines
789 B
Bash

# Template file for 'python-msgpack'
pkgname=python-msgpack
version=0.6.2
revision=1
wrksrc="msgpack-${version}"
build_style=python-module
pycompile_module="msgpack"
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=ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa1e1830
do_check() {
python3 -m pytest
}
python3-msgpack_package() {
pycompile_module="msgpack"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}