summary refs log tree commit diff
path: root/pkgs/development/python-modules/wxPython/3.0.nix
blob: 2ef62b87cc5ad7eb229cdef22caa3d1fe3dc426d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true, python, isPyPy }:

assert wxGTK.unicode;

with stdenv.lib;

let version = "3.0.2.0"; in

if isPyPy then throw "wxPython-${version} not supported for interpreter ${python.executable}" else stdenv.mkDerivation {
  name = "wxPython-${version}";
  
  builder = ./builder3.0.sh;
  
  src = fetchurl {
    url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
    sha256 = "0qfzx3sqx4mwxv99sfybhsij4b5pc03ricl73h4vhkzazgjjjhfm";
  };
  
  buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ]
                ++ optional openglSupport pythonPackages.pyopengl;

  inherit openglSupport;

  passthru = { inherit wxGTK openglSupport; };
  
  meta = {
    platforms = stdenv.lib.platforms.all;
  };
}