# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=py3-mmh3 pkgver=4.0.1 pkgrel=0 pkgdesc="Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions" url="https://github.com/hajimes/mmh3" arch="all" license="CC0-1.0" depends="python3" makedepends="python3-dev py3-setuptools" checkdepends="py3-numpy" subpackages="$pkgname-doc" source="mmh3-$pkgver.tar.gz::https://github.com/hajimes/mmh3/archive/v$pkgver.tar.gz" builddir="$srcdir/mmh3-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$(echo $PWD/build/lib.*)" python3 tests/test_mmh3.py } package() { python3 setup.py install --skip-build --root="$pkgdir" # remove C sources erroneously installed into the package rm -rf "$pkgdir"/usr/lib/python3*/site-packages/mmh3/ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" } sha512sums=" df41c02f8c61782dd8fe0ca6c150e2f421cfb8d81e6d6eb717be38a5907eb7ad8824cb4c8fe9a0b5e8d4cee61c25401385e4fd4a0b2322b22416e1d6cd9df98b mmh3-4.0.1.tar.gz "