mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-fireflyalgorithm
|
|
_pkgorig=FireflyAlgorithm
|
|
pkgver=0.3.1
|
|
pkgrel=0
|
|
pkgdesc="Implementation of Firefly Algorithm for optimization in Python"
|
|
url="https://github.com/firefly-cpp/FireflyAlgorithm"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-numpy"
|
|
makedepends="py3-build py3-poetry-core py3-wheel py3-installer"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/firefly-cpp/FireflyAlgorithm/archive/$pkgver/$_pkgorig-$pkgver.tar.gz
|
|
rename-project-name.patch"
|
|
builddir="$srcdir/FireflyAlgorithm-$pkgver"
|
|
|
|
build() {
|
|
GIT_DIR="$builddir" python3 -m build --no-isolation --wheel
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/fireflyalgorithm-$pkgver-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c205c356a854ef10a48ced8dd99d0425ad025df1e9980057761ec12dcd88d135190e6448286c9fb913040cfa9621e27e54a110822787c3e78cae5083e10023aa FireflyAlgorithm-0.3.1.tar.gz
|
|
a837a474e0b59dcfd1debea2bf36a12b97db2e711b7f08c81e0602b2f7d3398f0171c550fb37758e4bf7bca9d169fde42c8043da8b0b12b409fb19a578860c6c rename-project-name.patch
|
|
"
|