mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
34 lines
950 B
Bash
34 lines
950 B
Bash
# Maintainer: kbipinkumar <kbipinkumar@pm.me>
|
|
|
|
_pkg=kmedoids
|
|
pkgname=python-${_pkg}
|
|
pkgver=0.5.3.1
|
|
pkgrel=2
|
|
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
|
|
}
|