1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
5 pkgname=python-scikit-learn
8 pkgdesc='A set of python modules for machine learning and data mining'
10 url='https://scikit-learn.org'
11 _url='https://github.com/scikit-learn/scikit-learn'
13 depends=(python-joblib
19 python-{build,installer,wheel}
21 optdepends=('python-matplotlib: plotting capabilities')
23 _archive="${pkgname#python-}-$pkgver"
24 source=("$_url/archive/$pkgver/$_archive.tar.gz")
25 sha256sums=('992694e21ce4285aab71b09939d3ed7e5ddb41b8803eb98e10aaba927b74bdf1')
29 sed -i -E '/setuptools/s/<[0-9.]+//;/numpy/d' pyproject.toml
39 python -m installer -d "$pkgdir" dist/*.whl
40 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
42 install -d "$pkgdir/usr/share/doc/$pkgname/"
43 cp -r doc/tutorial "$pkgdir/usr/share/doc/$pkgname/tutorial"