# Contributor: Francois Boulogne # Maintainer: Erich Eckner pkgname=python2-lmfit pkgver=0.9.7 pkgrel=1 pkgdesc="Least-Squares Minimization with Constraints for Python" arch=('any') url="http://lmfit.github.io/lmfit-py/" license=('BSD') depends=('python2' 'python2-numpy' 'python2-scipy') makedepends=('python2-setuptools') checkdepends=('python2-nose') source=(https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz) build() { cd "$srcdir/lmfit-py-$pkgver" python2 setup.py build } check() { cd "$srcdir/lmfit-py-$pkgver" nosetests2 tests } package(){ cd "$srcdir/lmfit-py-$pkgver" python2 setup.py install --root="$pkgdir/" --optimize=1 } # vim:ts=2:sw=2:et: sha512sums=('c55c220b10b3734fd47757ed5b35c4052cbbe5310024ecbaf391b7144a84590fc11bca87a5f57a99cf6a1eb2d6f8ba8460f977a84356472fa03c117dc2c0e1b9')