void-packages/srcpkgs/python-snappy/template
maxice8 efe9aea725 python-snappy: update to 0.5.2.
Closes: #12544 [via git-merge-pr]
2018-03-15 19:14:24 -07:00

34 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
}
}