# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-louvain _pkgorig=python-louvain pkgver=0.16 pkgrel=2 pkgdesc="Louvain community detection method" url="https://github.com/taynaud/python-louvain" arch="noarch" license="BSD-3-Clause" depends="python3 py3-networkx py3-numpy" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/taynaud/python-louvain/archive/$pkgver/$_pkgorig-$pkgver.tar.gz $pkgname-fix-test.patch::https://github.com/taynaud/python-louvain/commit/638804ae636dc65306900ef6518ca0a1c9202566.patch " builddir="$srcdir/$_pkgorig-$pkgver" build() { python3 setup.py build } check() { python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 471fa269a89e32333a55ae0b214b32388b0c0e5eff940907d8ff280839857eafd12de1a3121fa8fa83426c70eaca987fd4dcf9bf2086a605a72aa39e2edcf950 python-louvain-0.16.tar.gz 4cfb615ece9e27cc8d7b28db841fcd7417b565ba72e5a2d508afdb726615cdf7d409033b36419d6168210151f987718a7bdfd80db3bcabd27a8d2a692d82d190 py3-louvain-fix-test.patch "