blob: 322f55c72d0df323f5cc5254ae2bb57cebd71a21 (
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
|
# Maintainer: kbipinkumar <kbipinkumar@pm.me>
_pkg=kmedoids
pkgname=python-${_pkg}
pkgver=0.5.3.1
pkgrel=1
pkgdesc="Fast K-Medoids clustering in Python with FasterPAM"
arch=("x86_64")
url="https://github.com/kno10/python-kmedoids"
license=('GPL-3.0-only')
depends=('python' 'python-numpy' 'python-scikit-learn' 'gcc-libs' 'glibc')
makedepends=('maturin' 'cargo' 'cmake' 'python-installer' 'git' 'python-pip' 'python-pytest')
options=('!lto')
_tag=v${pkgver}
source=("${_pkg}::git+https://github.com/kno10/python-kmedoids.git#tag=${_tag}")
sha256sums=('fbf38b61f29f628fba3ecc915ad339cdb3364706ae54ead61f1a7face6a2d58d')
prepare() {
cd ${_pkg}
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd ${_pkg}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
maturin build -o ./wheels --release
}
package() {
cd ${_pkg}
python -m installer -d "$pkgdir" ./wheels/*.whl
}
|