summaryrefslogtreecommitdiff
path: root/community/py3-cro/APKBUILD
blob: 04babe67da9b42fcc811e16323cf2e2ae2da6ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-cro
_pkgorig=coral-reef-optimization-algorithm
_commit=25804fc43b735df707821008558e9410dfe4a835
pkgver=0.0.5.1
pkgrel=1
pkgdesc="Implementation of Coral Reef Optimization (CRO) Algorithm"
url="https://github.com/VictorPelaez/coral-reef-optimization-algorithm"
arch="noarch !s390x !riscv64" # py3-scikit-learn, py3-matplotlib
license="MIT"
depends="python3 py3-matplotlib py3-scipy py3-numpy py3-scikit-learn py3-pandas"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/VictorPelaez/$_pkgorig/archive/$_commit/$_pkgorig-$_commit.tar.gz"
builddir="$srcdir/$_pkgorig-$_commit"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1d6fd639fbd7e138535323e5b27a4da66f6dcf46ee1603eaf39eea4fe9d4fcf638df6419fa07941b9500accda1134d6a84e53b3031892c2047c5ef286958de11  py3-cro-0.0.5.1.tar.gz
"