blob: 021d68a3d2c8046d5de9faa10ba1f8a2b71af1a1 (
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
|
# Maintainer: Philipp A. <flying-sheep@web.de>
_name=leidenalg
pkgname=python-$_name
pkgver=0.9.0
pkgrel=3
pkgdesc='The Leiden algorithm for community detection'
arch=(x86_64)
url="https://github.com/vtraag/$_name"
license=(GPL3)
depends=(python-igraph)
makedepends=(cmake python-setuptools python-setuptools-scm python-build python-installer python-wheel)
optdepends=('python-tqdm: Optimizer progress status')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('4878f85b63c4df5632b2bf646e4f9760898ac1f55160dec26b8709b7bee2783c')
build() {
cd "$srcdir/$_name-$pkgver"
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|