2014-09-11 14:29:20 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true, python, isPyPy }:
|
2014-03-25 22:32:39 +01:00
|
|
|
|
|
|
|
assert wxGTK.unicode;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let version = "3.0.0.0"; in
|
|
|
|
|
2014-09-11 14:29:20 +02:00
|
|
|
if isPyPy then throw "wxPython-${version} not supported for interpreter ${python.executable}" else stdenv.mkDerivation {
|
2014-03-25 22:32:39 +01:00
|
|
|
name = "wxPython-${version}";
|
|
|
|
|
|
|
|
builder = ./builder3.0.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
|
|
|
|
sha256 = "af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ]
|
|
|
|
++ optional openglSupport pythonPackages.pyopengl;
|
|
|
|
|
|
|
|
inherit openglSupport;
|
|
|
|
|
|
|
|
passthru = { inherit wxGTK openglSupport; };
|
2014-11-04 18:18:48 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|