summaryrefslogtreecommitdiff
path: root/community/py3-louvain/APKBUILD
blob: d0039ae18ed475708a65f9a00b6a612afe5ce169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-louvain
_pkgorig=python-louvain
pkgver=0.16
pkgrel=1
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"
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
"