From aba1a912059055394ecd0e8f30fc95bda04de074 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 6 Nov 2017 08:41:51 -0200 Subject: [PATCH] New package: python-snappy-0.5.1. --- srcpkgs/python-snappy/template | 34 ++++++++++++++++++++++++++++++++++ srcpkgs/python3-snappy | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-snappy/template create mode 120000 srcpkgs/python3-snappy diff --git a/srcpkgs/python-snappy/template b/srcpkgs/python-snappy/template new file mode 100644 index 0000000000..5a5979a458 --- /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 0000000000..0918969c3e --- /dev/null +++ b/srcpkgs/python3-snappy @@ -0,0 +1 @@ +python-snappy \ No newline at end of file