diff --git a/srcpkgs/python-snappy/template b/srcpkgs/python-snappy/template new file mode 100644 index 00000000000..5a5979a4582 --- /dev/null +++ b/srcpkgs/python-snappy/template @@ -0,0 +1,34 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3-snappy b/srcpkgs/python3-snappy new file mode 120000 index 00000000000..0918969c3e0 --- /dev/null +++ b/srcpkgs/python3-snappy @@ -0,0 +1 @@ +python-snappy \ No newline at end of file