2023-09-24 08:58:54 +00:00

36 lines
1.0 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-batalgorithm
_pkgorig=BatAlgorithm
pkgver=0.3.1
pkgrel=5
pkgdesc="Implementation of bat-inspired metaheuristic algorithm"
url="https://github.com/buma/BatAlgorithm"
arch="noarch"
license="MIT"
depends="python3 py3-numpy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/B/BatAlgorithm/BatAlgorithm-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
# no tests provided by the upstream; use smoke tests
check() {
PYTHONPATH=build/lib python3 -c "from BatAlgorithm import *"
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
bef691a55df0cfa99d09162c4ef669fe71714bb2d76f4adabad97d95a5222419a14e36b824d1d2be28c31857a2b84c655aa8583afc8d90d23eb3e9e57414baaf py3-batalgorithm-0.3.1.tar.gz
"