void-packages/srcpkgs/python-snappy/template

35 lines
886 B
Bash

# Template file for 'python-snappy'
pkgname=python-snappy
version=0.5.2
revision=1
build_style=python-module
pycompile_module="snappy"
hostmakedepends="python-setuptools python3-setuptools"
checkdepends="python-nose2 python-cffi"
makedepends="python-devel python3-devel snappy-devel"
depends="python"
short_desc="Python2 bindings for the snappy compression library from Google"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/andrix/python-snappy"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=2ce83e44587adbc7239589048d660a92f899eb45af4e48e73092192a8b0f0789
do_check() {
nosetest
}
post_install() {
vlicense LICENSE
}
python3-snappy_package() {
pycompile_module="snappy"
short_desc="${pkgname/Python2/Python3}"
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}