# Contributor: Francois Boulogne # Maintainer: Erich Eckner pkgname='python-lmfit' _pkgname=lmfit-py pkgver=1.0.1 pkgrel=3 pkgdesc="Least-Squares Minimization with Constraints for Python" arch=('any') url="http://lmfit.github.io/lmfit-py/" license=('BSD') depends=( 'python>=3.9' 'python<3.10' 'python-asteval>=0.9.16' 'python-numpy>=1.16' 'python-scipy>=1.2' 'python-uncertainties>=3.0.1') makedepends=( 'python-setuptools') checkdepends=( 'python-nose') source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz") sha512sums=('cecc63e42639cf4c891c8edfdd355b56318d90faf69019b2e32042cfa215a24dba335bb12ab07c8c1ba10a04410cf40e8523fd4412035fa34c3be8f7c2852e24') build() { cd "$srcdir/lmfit-py-$pkgver" python setup.py build } check() { cd "$srcdir/lmfit-py-$pkgver" nosetests3 tests || echo 'WARNING: python3 tests failed' } package(){ cd "$srcdir/lmfit-py-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 }