diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e04c326966b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-lmfit + pkgdesc = Least-Squares Minimization with Constraints for Python + pkgver = 0.8.3 + pkgrel = 1 + url = http://lmfit.github.io/lmfit-py/ + arch = any + license = BSD + checkdepends = python-nose + makedepends = python-setuptools + depends = python + depends = python-numpy + depends = python-scipy + source = https://github.com/lmfit/lmfit-py/archive/0.8.3.tar.gz + md5sums = f5a06cf18611f3dc323e3a1bab8d45fa + +pkgname = python-lmfit + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..277f87cee2f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Contributor: Francois Boulogne <fboulogne at april dot org> +# Maintainer: Francois Boulogne <fboulogne at april dot org> + +pkgname=python-lmfit +pkgver=0.8.3 +pkgrel=1 +pkgdesc="Least-Squares Minimization with Constraints for Python" +arch=('any') +url="http://lmfit.github.io/lmfit-py/" +license=('BSD') +depends=('python' 'python-numpy' 'python-scipy') +makedepends=('python-setuptools') +checkdepends=('python-nose') +source=(https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz) + +build() { + cd "$srcdir/lmfit-py-$pkgver" + python setup.py build +} + +check() { + cd "$srcdir/lmfit-py-$pkgver" + nosetests3 tests +} + +package(){ + cd "$srcdir/lmfit-py-$pkgver" + python setup.py install --root="${pkgdir}" --optimize=1 +} + +# vim:ts=2:sw=2:et: +md5sums=('f5a06cf18611f3dc323e3a1bab8d45fa') |