|
1 | 1 | { stdenv, fetchPypi, python, buildPythonPackage, pycairo, backports_functools_lru_cache
|
2 | 2 | , which, cycler, dateutil, nose, numpy, pyparsing, sphinx, tornado, kiwisolver
|
3 | 3 | , freetype, libpng, pkgconfig, mock, pytz, pygobject3, functools32, subprocess32
|
| 4 | +, fetchpatch |
4 | 5 | , enableGhostscript ? false, ghostscript ? null, gtk3
|
5 | 6 | , enableGtk2 ? false, pygtk ? null, gobject-introspection
|
6 | 7 | , enableGtk3 ? false, cairo
|
@@ -47,9 +48,16 @@ buildPythonPackage rec {
|
47 | 48 | ++ stdenv.lib.optionals enableQt [ pyqt4 ]
|
48 | 49 | ++ stdenv.lib.optionals python.isPy2 [ functools32 subprocess32 ];
|
49 | 50 |
|
50 |
| - patches = |
51 |
| - [ ./basedirlist.patch ] ++ |
52 |
| - stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv-2.2.3.patch ]; |
| 51 | + patches = [ |
| 52 | + ./basedirlist.patch |
| 53 | + |
| 54 | + # https://github.com/matplotlib/matplotlib/pull/12478 |
| 55 | + (fetchpatch { |
| 56 | + name = "numpy-1.16-compat.patch"; |
| 57 | + url = "https://github.com/matplotlib/matplotlib/commit/2980184d092382a40ab21f95b79582ffae6e19d6.patch"; |
| 58 | + sha256 = "1c0wj28zy8s5h6qiavx9zzbhlmhjwpzbc3fyyw9039mbnqk0spg2"; |
| 59 | + }) |
| 60 | + ] ++ stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv-2.2.3.patch ]; |
53 | 61 |
|
54 | 62 | # Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the
|
55 | 63 | # corresponding interpreter object for its library paths. This fails if
|
|
0 commit comments