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