summaryrefslogtreecommitdiff
path: root/python-lmfit
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-21 08:37:50 +0100
committerErich Eckner <git@eckner.net>2018-03-21 08:37:50 +0100
commitea08360bec24799699bc7288ee376fbbac1a82a9 (patch)
treecc5a6750482966c3be991669bd818e8a77e6f45b /python-lmfit
parent715ae5622f13dbca824948e824e79dd8a03a36ae (diff)
downloadarchlinuxewe.git.save-ea08360bec24799699bc7288ee376fbbac1a82a9.tar.xz
python-lmfit: 0.9.8-1 -> 0.9.9-1
Diffstat (limited to 'python-lmfit')
-rw-r--r--python-lmfit/PKGBUILD17
-rw-r--r--python-lmfit/test.patch30
2 files changed, 7 insertions, 40 deletions
diff --git a/python-lmfit/PKGBUILD b/python-lmfit/PKGBUILD
index 54f41a40..b4b86597 100644
--- a/python-lmfit/PKGBUILD
+++ b/python-lmfit/PKGBUILD
@@ -3,29 +3,26 @@
pkgbase=python-lmfit
pkgname=('python-lmfit' 'python2-lmfit')
-pkgver=0.9.8
+pkgver=0.9.9
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' 'python-asteval')
makedepends=(
"${_depends[@]}" "${_depends[@]/python/python2}"
- 'python-setuptools' 'python2-setuptools'
+ "${_makedepends[@]}" "${_makedepends[@]/python/python2}"
)
checkdepends=(
- 'python-nose' 'python2-nose'
+ "${_checkdepends[@]}" "${_checkdepends[@]/python/python2}"
)
-source=("https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz"
- 'test.patch')
-sha512sums=('2a73acf1d2b700a5641f5393e079d56f7f43d3160a48fe0bce9beafbec0cce5e7954c4e2d343aadba1f832c0c816466f7be8ea94dab19a4a8ad82279419f1c68'
- '779bbd1d71d7e15ce740fb3bdfaffb044912e1c2bc790732f9be101af2771c00ca00d21defd10fafd98694f42ffcaacff29e856060b27be1877a329a8a4449c7')
+source=("https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz")
+sha512sums=('71f59ce998f3244ba4c9361aba16a0118534f253984b03d979e4ddcf0d83f35cf00efa04704acbc1e81b26ea16443593923779a3b18778b7d7905a60ebc8d086')
prepare() {
- cd "${srcdir}/lmfit-py-${pkgver}"
- patch -p1 -i "${srcdir}/test.patch"
- cd "${srcdir}"
cp -a "lmfit-py-${pkgver}" "lmfit-py2-${pkgver}"
}
diff --git a/python-lmfit/test.patch b/python-lmfit/test.patch
deleted file mode 100644
index 603fc870..00000000
--- a/python-lmfit/test.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- a/tests/test_saveload.py 2018-02-11 15:08:45.000000000 +0100
-+++ b/tests/test_saveload.py 2018-02-23 09:41:17.335712453 +0100
-@@ -14,7 +14,7 @@
- except ImportError:
- DILL_AVAILABLE = False
-
--dat = np.loadtxt(os.path.join('..', 'examples', 'NIST_Gauss2.dat'))
-+dat = np.loadtxt(os.path.join(os.path.dirname(__file__), '..', 'examples', 'NIST_Gauss2.dat'))
- XDAT = dat[:, 1]
- YDAT = dat[:, 0]
-
---- a/tests/test_height_fwhm.py 2018-02-11 15:08:45.000000000 +0100
-+++ b/tests/test_height_fwhm.py 2018-02-23 09:41:41.030806931 +0100
-@@ -8,6 +8,7 @@
- from scipy.optimize import fsolve
- import sys
-
-+import os
-
- # Turn off plotting if run by nosetests.
- WITHPLOT = True
-@@ -76,7 +76,7 @@
- # sigma = np.sqrt(variance)
- # x = np.linspace(mu - 20*sigma, mu + 20*sigma, 100.0)
- # y = norm.pdf(x, mu, 1)
-- data = np.loadtxt('../examples/test_peak.dat')
-+ data = np.loadtxt(os.path.join(os.path.dirname(__file__), '..', 'examples', 'test_peak.dat'))
- x = data[:, 0]
- y = data[:, 1]
- check_height_fwhm(x, y, lineshapes.voigt, models.VoigtModel())