1{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true, python, isPyPy }: 2 3assert wxGTK.unicode; 4 5with stdenv.lib; 6 7let version = "3.0.0.0"; in 8 9if isPyPy then throw "wxPython-${version} not supported for interpreter ${python.executable}" else stdenv.mkDerivation { 10 name = "wxPython-${version}"; 11 12 builder = ./builder3.0.sh; 13 14 src = fetchurl { 15 url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2"; 16 sha256 = "af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11"; 17 }; 18 19 buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ] 20 ++ optional openglSupport pythonPackages.pyopengl; 21 22 inherit openglSupport; 23 24 passthru = { inherit wxGTK openglSupport; }; 25 26 meta = { 27 platforms = stdenv.lib.platforms.all; 28 }; 29}