51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
|
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
|
|
|
|
pkgname=python-scikit-learn
|
|
pkgver=1.5.1
|
|
pkgrel=1
|
|
pkgdesc='A set of python modules for machine learning and data mining'
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url='https://scikit-learn.org'
|
|
_url='https://github.com/scikit-learn/scikit-learn'
|
|
license=(BSD-3-Clause)
|
|
depends=(python-joblib
|
|
python-numpy
|
|
python-scipy
|
|
python-threadpoolctl)
|
|
makedepends=(cython
|
|
meson-python
|
|
python-{build,installer,wheel}
|
|
python-setuptools)
|
|
makedepends_powerpc64=(openmp)
|
|
makedepends_powerpc64le=(openmp)
|
|
makedepends_riscv64=(openmp)
|
|
makedepends_x86_64=(openmp)
|
|
optdepends=('python-matplotlib: plotting capabilities')
|
|
options=(!emptydirs)
|
|
_archive="${pkgname#python-}-$pkgver"
|
|
source=("$_url/archive/$pkgver/$_archive.tar.gz")
|
|
sha256sums=('73bf9e72cc995ffbc62411d82d2eedb9d4ea24e5c4c5a12ff1ac02bc38f452e8')
|
|
|
|
prepare() {
|
|
cd $_archive
|
|
sed -i -E \
|
|
-e '/setuptools/s/<[0-9.]+//' \
|
|
-e '/numpy/d' \
|
|
-e '/Cython/s/,<3.0//' \
|
|
pyproject.toml
|
|
}
|
|
|
|
build() {
|
|
cd $_archive
|
|
python -m build -wn
|
|
}
|
|
|
|
package() {
|
|
cd $_archive
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
|
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
|
|
}
|