summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/wxPython/2.8.nix
blob: a6fd0100f5873094894b19906e4f846bb2dd5126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, python, isPyPy }:

assert wxGTK.unicode;

let version = "2.8.12.1"; in

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

  meta = {
    platforms = stdenv.lib.platforms.all;
  };
}