# Maintainer: Carlos Aznarán _base=NiaAML pkgname=python-${_base,,} pkgver=2.0.0 pkgrel=1 pkgdesc="Python automated machine learning framework" url="https://github.com/firefly-cpp/${_base}" arch=(any) license=(MIT) depends=(python-niapy python-scikit-learn) makedepends=(python-build python-installer python-poetry-core) checkdepends=(python-pytest) source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz) sha512sums=('91d72f5bc5f566cee6225e59a1abc7fa1d64e346bef57a8fe4aaa9320e2594655c7d965d2fbfd76e95a8b0464d2f37c6e8451828717091529984e123c2917cff') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} python -m pytest } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }