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