Remove some matplotlib optional backends.

The removed ones are not certain to work at the moment.
This commit is contained in:
Robert Helgesson 2014-12-22 21:38:05 +01:00 committed by Domen Kožar
parent c8d0d91db1
commit 0c27d37495

View File

@ -2,20 +2,11 @@
, which, dateutil, nose, numpy, pyparsing, tornado , which, dateutil, nose, numpy, pyparsing, tornado
, freetype, libpng, pkgconfig, mock, pytz , freetype, libpng, pkgconfig, mock, pytz
, enableGhostscript ? false, ghostscript ? null , enableGhostscript ? false, ghostscript ? null
, enableCairo ? false, pycairo ? null
, enableGtk2 ? false, pygtk ? null , enableGtk2 ? false, pygtk ? null
, enableGtk3 ? false, pygobject3 ? null, gtk3 ? null }:
, enableQt4 ? false, pyqt4 ? null
, enableQt5 ? false, pyqt5 ? null
, enableWxWidgets ? false, wxPython ? null }:
assert enableGhostscript -> ghostscript != null; assert enableGhostscript -> ghostscript != null;
assert enableCairo -> pycairo != null;
assert enableGtk2 -> pygtk != null; assert enableGtk2 -> pygtk != null;
assert enableGtk3 -> pygobject3 != null && gtk3 != null;
assert enableQt4 -> pyqt4 != null;
assert enableQt5 -> pyqt5 != null;
assert enableWxWidgets -> wxPython != null;
buildPythonPackage rec { buildPythonPackage rec {
name = "matplotlib-1.4.2"; name = "matplotlib-1.4.2";
@ -26,19 +17,13 @@ buildPythonPackage rec {
}; };
buildInputs = [ python which stdenv ] buildInputs = [ python which stdenv ]
++ stdenv.lib.optional enableGhostscript ghostscript ++ stdenv.lib.optional enableGhostscript ghostscript;
++ stdenv.lib.optional enableGtk3 gtk3;
propagatedBuildInputs = propagatedBuildInputs =
[ dateutil nose numpy pyparsing tornado freetype [ dateutil nose numpy pyparsing tornado freetype
libpng pkgconfig mock pytz libpng pkgconfig mock pytz
] ]
++ stdenv.lib.optional enableCairo pycairo ++ stdenv.lib.optional enableGtk2 pygtk;
++ stdenv.lib.optional enableGtk2 pygtk
++ stdenv.lib.optional enableGtk3 pygobject3
++ stdenv.lib.optional enableQt4 pyqt4
++ stdenv.lib.optional enableQt5 pyqt5
++ stdenv.lib.optional enableWxWidgets wxPython;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "python plotting library, making publication quality plots"; description = "python plotting library, making publication quality plots";