@@ -1,39 +0,0 @@
1−{ fetchurl
2−, lib
3−, pythonPackages
4−, openglSupport ? true
5−, libX11
6−, wxGTK
7−, pkgconfig
8−}:
9−
10−assert wxGTK.unicode;
11−
12−with pythonPackages;
13−
14−buildPythonPackage rec {
15− name = "wxPython-${version}";
16− version = "2.8.12.1";
17−
18− disabled = isPy3k || isPyPy;
19− doCheck = false;
20−
21− src = fetchurl {
22− url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
23− sha256 = "1l1w4i113csv3bd5r8ybyj0qpxdq83lj6jrc5p7cc10mkwyiagqz";
24− };
25−
26− propagatedBuildInputs = [ pkgconfig wxGTK (wxGTK.gtk) libX11 ] ++ lib.optional openglSupport pyopengl;
27− preConfigure = "cd wxPython";
28−
29− NIX_LDFLAGS = "-lX11 -lgdk-x11-2.0";
30−
31− buildPhase = "";
32−
33− installPhase = ''
34− ${python.interpreter} setup.py install WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
35− wrapPythonPrograms
36− '';
37−
38− passthru = { inherit wxGTK openglSupport; };
39−}