aports/community/py3-mealpy/APKBUILD
2025-06-04 10:55:40 +00:00

36 lines
1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-mealpy
pkgver=3.0.2
pkgrel=0
pkgdesc="Meta-Heuristic Algorithms using Python"
url="https://github.com/thieu1995/mealpy"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-numpy py3-matplotlib py3-opfunu py3-scipy"
checkdepends="py3-pytest-xdist"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/thieu1995/mealpy/archive/v$pkgver/mealpy-$pkgver.tar.gz"
builddir="$srcdir/mealpy-$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
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
18443fd6328f8f0dcb5dd88ac766ce7f5355607e6c354a93808288c8b0a00e94f82d2b7de8d1cd20fabf4206097296d947651c8e3549f19be38268fa7992e33b mealpy-3.0.2.tar.gz
"