void-packages/srcpkgs/python-snappy/template
2017-11-08 20:33:38 +01:00

34 lines
877 B
Bash

# Template file for 'python-snappy'
pkgname=python-snappy
version=0.5.1
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"
homepage="https://github.com/andrix/python-snappy"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=385fb216e7d1241f70c14c2bea3f042ec235caa65d708294f1ece50d3efa5de3
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
}
}