37 lines
1.2 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-scikit-plot
pkgver=0.3.7
pkgrel=3
pkgdesc="An intuitive library to add plotting functionality to scikit-learn objects"
url="https://github.com/reiinakano/scikit-plot"
arch="noarch"
license="MIT"
depends="python3 py3-joblib py3-matplotlib py3-scipy py3-scikit-learn"
checkdepends="py3-pytest-xdist"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/reiinakano/scikit-plot/archive/v$pkgver/scikit-plot-$pkgver.tar.gz"
builddir="$srcdir/scikit-plot-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto -k 'not test_metrics and not test_classifiers'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
46dfe3d5562f70f379611e3f287c5721b95e4b5f860700ed9553b327a56359d7d2c5ea683251a68d81cd257184fc9d535907b2afc9cc7b56236557a69500236c py3-scikit-plot-0.3.7.tar.gz
"