blob: b57547d4fb1939092eb19fbb62ca6158ca273da6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname='python-lmfit'
_pkgname=lmfit-py
pkgver=1.0.2
pkgrel=1
pkgdesc="Least-Squares Minimization with Constraints for Python"
arch=('any')
url="http://lmfit.github.io/lmfit-py/"
license=('BSD')
depends=(
'python<3.10'
'python>=3.9'
'python-asteval>=0.9.21'
'python-numpy>=1.18'
'python-scipy>=1.3'
'python-uncertainties>=3.0.1')
checkdepends=(
'python-nose')
makedepends=(
'python-setuptools')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz")
sha512sums=('f63b75e28ddd7b59a46609f861ccb51d1853231e42b24f4efb412fac5bbc3ab94969873965e773443bf49a36b2ddbdff3cef1d6223d8805fb959ce8d3b2eb07c')
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
}
|