* wxPython updated to 2.8.12.0.

* wxPython builder: wrap the Python programs (such as pyshell) so that
  they actually work.

svn path=/nixpkgs/trunk/; revision=27122
This commit is contained in:
Eelco Dolstra 2011-05-03 16:57:18 +00:00
parent 5c244c345d
commit a7d4f19ab3
3 changed files with 16 additions and 8 deletions

View File

@ -1,14 +1,18 @@
{stdenv, fetchurl, pkgconfig, wxGTK, python}: { stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages }:
assert wxGTK.unicode; assert wxGTK.unicode;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "wxPython-2.8.4.0"; name = "wxPython-2.8.12.0";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/wxpython/wxPython-src-2.8.4.0.tar.bz2; url = mirror://sourceforge/wxpython/wxPython-src-2.8.12.0.tar.bz2;
sha256 = "0lkj29jcw3kqaf2iphgmmn9cqf2ppkm6qqr9izlx4bvn9dihgq6h"; sha256 = "1gdsk1p8ds4jd00habxy4y8m56247a5s1mvq1lm1r6475dvq4pkd";
}; };
buildInputs = [pkgconfig wxGTK (wxGTK.gtk) python];
passthru = {inherit wxGTK;}; buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ];
passthru = { inherit wxGTK; };
} }

View File

@ -12,6 +12,11 @@ buildPhase() {
installPhase() { installPhase() {
python setup.py $flags install --prefix=$out python setup.py $flags install --prefix=$out
# Ugly workaround for Nixpkgs/111.
ln -s $out/lib/python*/site-packages/wx-*-gtk2-unicode/* $out/lib/python*/site-packages
wrapPythonPrograms
} }
genericBuild genericBuild

View File

@ -435,7 +435,6 @@ let
}; };
bittorrent = callPackage ../tools/networking/p2p/bittorrent { bittorrent = callPackage ../tools/networking/p2p/bittorrent {
wxPython = wxPython26;
gui = true; gui = true;
}; };
@ -4525,7 +4524,7 @@ let
setuptools = pythonPackages.setuptools; setuptools = pythonPackages.setuptools;
wxPython = wxPython26; wxPython = wxPython28;
wxPython26 = callPackage ../development/python-modules/wxPython/2.6.nix { wxPython26 = callPackage ../development/python-modules/wxPython/2.6.nix {
wxGTK = wxGTK26; wxGTK = wxGTK26;