# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-fireflyalgorithm _pkgorig=FireflyAlgorithm pkgver=0.3.4 pkgrel=1 pkgdesc="An implementation of the stochastic nature-inspired algorithm for optimization" url="https://github.com/firefly-cpp/FireflyAlgorithm" arch="noarch" license="MIT" depends="python3 py3-numpy" makedepends="py3-gpep517 py3-poetry-core" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/firefly-cpp/FireflyAlgorithm/archive/$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/FireflyAlgorithm-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/fireflyalgorithm-$pkgver-py3-none-any.whl } sha512sums=" fde6105769c0816ebda270ca0ec5c85c997e0ca895329b6515c6a229b9da240ef5732faa236a78b20a5e5dc59ac8a325780bf5bd4d58de8b52a8ce960d2653b7 FireflyAlgorithm-0.3.4.tar.gz "