void-packages/srcpkgs/python-snappy/template
2018-07-11 21:42:51 -03:00

32 lines
851 B
Bash

# Template file for 'python-snappy'
pkgname=python-snappy
version=0.5.3
revision=1
build_style=python-module
pycompile_module="snappy"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel snappy-devel"
checkdepends="python3-cffi"
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=8a7f803f06083d4106d55387d2daa32c12b5e376c3616b0e2da8b8a87a27d74a
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-snappy_package() {
pycompile_module="snappy"
short_desc="${pkgname/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}