summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7071c82651181475f3c4415482172ea8aeda085b (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
35
# Maintainer: Alexander Bocken <alexander@bocken.org>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Federico Cassani <federico dot cassani at outlook dot com>

_name=imbalanced-learn
pkgname=python-${_name,,}
pkgver=0.13.0
pkgrel=1
pkgdesc='Toolbox for imbalanced dataset in machine learning'
arch=('any')
url="https://github.com/scikit-learn-contrib/imbalanced-learn"
license=('MIT')
depends=('python>=3.10'
	 'python-numpy>=1.24.3'
	 'python-scipy>=1.10.1'
	 'python-scikit-learn>=1.3.2'
	 'python-joblib>=1.1.0'
	 'python-threadpoolctl>=2.0.0'
	 'python-sklearn-compat>=0.1'
)
optdepends=('python-keras: for dealing with Keras models'
	    'python-tensorflow: for dealing with TensorFlow models'
	    'python-pandas: for dealing with Pandas DataFrames'
	    'python-matplotlib: for included examples'
	    'python-seaborn: for included examples'
	    )
makedepends=('python-installer' 'python-wheel')
_whl="${_name//-/_}-$pkgver-py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py3-none-any.whl")
sha256sums=(7eb5859f7827cb3babfa5789978c22fe36e56527d9c9768df2d864d98d9b40fe)

noextract=("$_whl")
package() {
    python -m installer --destdir="$pkgdir" "$_whl"
}