From a4b475435e2d3e825ff8116e3c2b12d1dfa44a42 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 1 May 2021 16:23:34 -0400 Subject: [PATCH] python3-ipython: fix broken matplotlib_inline import --- srcpkgs/python3-ipython/patches/mpl_inline_fix.patch | 12 ++++++++++++ srcpkgs/python3-ipython/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3-ipython/patches/mpl_inline_fix.patch diff --git a/srcpkgs/python3-ipython/patches/mpl_inline_fix.patch b/srcpkgs/python3-ipython/patches/mpl_inline_fix.patch new file mode 100644 index 000000000000..4526ce4af0e7 --- /dev/null +++ b/srcpkgs/python3-ipython/patches/mpl_inline_fix.patch @@ -0,0 +1,12 @@ +diff --git IPython/core/pylabtools.py IPython/core/pylabtools.py +index c71b0cdb6..bb815956e 100644 +--- IPython/core/pylabtools.py ++++ IPython/core/pylabtools.py +@@ -383,6 +383,6 @@ def configure_inline_support(shell, backend): + stacklevel=2, + ) + +- from matplotlib_inline.backend_inline import configure_inline_support_orig ++ from matplotlib_inline.backend_inline import configure_inline_support as configure_inline_support_orig + + configure_inline_support_orig(shell, backend) diff --git a/srcpkgs/python3-ipython/template b/srcpkgs/python3-ipython/template index bf1b012ed3a3..671614a92a1d 100644 --- a/srcpkgs/python3-ipython/template +++ b/srcpkgs/python3-ipython/template @@ -1,7 +1,7 @@ # Template file for 'python3-ipython' pkgname=python3-ipython version=7.23.0 -revision=1 +revision=2 wrksrc="ipython-${version}" build_style=python3-module hostmakedepends="python3-setuptools"