summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
-rw-r--r--fix_for_new_matplotlib.patch12
3 files changed, 21 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8d573690bcc..35bbde0571b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Thu Feb 21 07:52:41 UTC 2019
pkgbase = python-pyspeckit
pkgdesc = Toolkit for fitting and manipulating spectroscopic data in python
pkgver = 0.1.21
- pkgrel = 1
+ pkgrel = 2
url = https://pyspeckit.readthedocs.io/
arch = i686
arch = x86_64
@@ -19,8 +17,10 @@ pkgbase = python-pyspeckit
makedepends = python-sphinx-astropy
source = https://files.pythonhosted.org/packages/source/p/pyspeckit/pyspeckit-0.1.21.tar.gz
source = correct_doc_examples.patch
+ source = fix_for_new_matplotlib.patch
md5sums = e276915c2865e0e64dc132a3b9cb0b23
md5sums = b1ea9f4f4d2c467c26c34293bfbd387f
+ md5sums = e1fb3919d6d3ae5e34fbbdcf95d5aae6
pkgname = python-pyspeckit
depends = python-numpy>=1.4
diff --git a/PKGBUILD b/PKGBUILD
index cec1a908a68..0f060c17cf5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ pkgbase=python-pyspeckit
_pyname=${pkgbase#python-}
pkgname=("python-${_pyname}" "python2-${_pyname}" "python-${_pyname}-doc")
pkgver=0.1.21
-pkgrel=1
+pkgrel=2
pkgdesc="Toolkit for fitting and manipulating spectroscopic data in python"
arch=('i686' 'x86_64')
url="https://pyspeckit.readthedocs.io/"
@@ -11,9 +11,11 @@ license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'python-astropy' 'python-astropy-helpers>=3.1' 'python2-astropy-helpers' 'python-sphinx-astropy')
checkdepends=('tk' 'python-pytest-astropy' 'python-spectral-cube')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
- 'correct_doc_examples.patch')
+ 'correct_doc_examples.patch'
+ 'fix_for_new_matplotlib.patch')
md5sums=('e276915c2865e0e64dc132a3b9cb0b23'
- 'b1ea9f4f4d2c467c26c34293bfbd387f')
+ 'b1ea9f4f4d2c467c26c34293bfbd387f'
+ 'e1fb3919d6d3ae5e34fbbdcf95d5aae6')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
@@ -21,6 +23,7 @@ prepare() {
sed -i -e '/auto_use/s/True/False/' setup.cfg
patch -Np1 -i "${srcdir}/correct_doc_examples.patch"
cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
+ patch -Np1 -i "${srcdir}/fix_for_new_matplotlib.patch"
}
build() {
diff --git a/fix_for_new_matplotlib.patch b/fix_for_new_matplotlib.patch
new file mode 100644
index 00000000000..e9221f4eda7
--- /dev/null
+++ b/fix_for_new_matplotlib.patch
@@ -0,0 +1,12 @@
+diff -ura a/pyspeckit/spectrum/fitters.py b/pyspeckit/spectrum/fitters.py
+--- a/pyspeckit/spectrum/fitters.py 2018-07-12 23:37:07.000000000 +0800
++++ b/pyspeckit/spectrum/fitters.py 2019-06-09 14:36:20.587282658 +0800
+@@ -1367,7 +1367,7 @@
+ handletextpad=handletextpad, labelspacing=labelspacing,
+ frameon=frameon, fontsize=fontsize, **kwargs)
+ self.Spectrum.plotter.axis.add_artist(self.fitleg)
+- self.fitleg.draggable(True)
++ self.fitleg.set_draggable(True)
+ if self.Spectrum.plotter.autorefresh:
+ self.Spectrum.plotter.refresh()
+