testing/py3-pyswarms: new aport

This commit is contained in:
firefly-cpp 2022-04-18 12:03:35 +00:00 committed by alice
parent da5fe3af58
commit a7e5b18ed4

View File

@ -0,0 +1,45 @@
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-pyswarms
_pkgorig=pyswarms
pkgver=1.3.0
pkgrel=0
pkgdesc="A research toolkit for particle swarm optimization in Python"
url="https://github.com/ljvmiranda921/"
arch="noarch !riscv64" #py3-matplotlib
license="MIT"
depends="
python3
py3-attrs
py3-cycler
py3-future
py3-kiwisolver
py3-matplotlib
py3-numpy
py3-parsing
py3-dateutil
py3-scipy
py3-six
py3-tqdm
py3-yaml
"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pyswarms/pyswarms-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
0aba56044417f40fe294b2fa427a1cc548c1e9825de436ee62ed6b2fdc32707976c10c8eefd6212cb73b41e8e54dbb06737ab769e6e53a54ef288d2048b19f9b py3-pyswarms-1.3.0.tar.gz
"