# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-opfunu _pkgorig=opfunu pkgver=1.0.0 pkgrel=3 pkgdesc="A collection of Benchmark functions for numerical optimization problems" url="https://github.com/thieu1995/opfunu" arch="noarch" license="MIT" depends="python3 py3-matplotlib py3-numpy py3-pandas py3-pillow py3-requests py3-scipy" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/o/opfunu/opfunu-$pkgver.tar.gz new-numpy.patch " builddir="$srcdir/$_pkgorig-$pkgver" build() { python3 setup.py build } check() { python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" rm -r "$pkgdir"/usr/lib/python3.*/site-packages/examples rm -r "$pkgdir"/usr/lib/python3.*/site-packages/tests } sha512sums=" 5df9e1e29391c4850f27f33c166ed4f4e32471ab094248cf8690a99492d044dc9b30c54e80086b6de6569e055573b0f2339e4097e6387a6a1888a490d6e6cce0 py3-opfunu-1.0.0.tar.gz 81221ba63fcb7419c41478657ffee559e674410a62fbef57dd97bdbcd02a499c85f7f849d831bfabc2aadad7eb2d3296606f61241efabb79a421445adf889617 new-numpy.patch "