about summary refs log tree commit diff
path: root/pkgs/development/python-modules/wxPython/3.0.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-09-05 12:58:00 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-09-05 16:36:36 +0200
commitf6a875d5ae12c8ef6587a3a632640225a13aca1b (patch)
tree05a461c19048de920f21c6131bfe697314002ad0 /pkgs/development/python-modules/wxPython/3.0.nix
parent9a0f8b5a4f27623c81ef87499d6aea541f831079 (diff)
downloadnixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar.gz
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar.bz2
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar.lz
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar.xz
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.tar.zst
nixlib-f6a875d5ae12c8ef6587a3a632640225a13aca1b.zip
wxPython: refactor to generic
Diffstat (limited to 'pkgs/development/python-modules/wxPython/3.0.nix')
-rw-r--r--pkgs/development/python-modules/wxPython/3.0.nix31
1 files changed, 4 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/wxPython/3.0.nix b/pkgs/development/python-modules/wxPython/3.0.nix
index 7cb05c59db6b..6892d7e87298 100644
--- a/pkgs/development/python-modules/wxPython/3.0.nix
+++ b/pkgs/development/python-modules/wxPython/3.0.nix
@@ -1,32 +1,9 @@
-{ stdenv, fetchurl, pkgconfig, python, buildPythonPackage, isPy3k, isPyPy, wxGTK, openglSupport ? true, pyopengl }:
+{ callPackage, ... } @ args:
 
-assert wxGTK.unicode;
-
-buildPythonPackage rec {
-
-  disabled = isPy3k || isPyPy;
-  doCheck = false;
+callPackage ./generic.nix (args // rec {
 
   version = "3.0.2.0";
-  name = "wxPython-${version}";
-
-  src = fetchurl {
-    url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2";
-    sha256 = "0qfzx3sqx4mwxv99sfybhsij4b5pc03ricl73h4vhkzazgjjjhfm";
-  };
-
-  buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) ]
-                ++ stdenv.lib.optional openglSupport pyopengl;
-
-  preConfigure = "cd wxPython";
-
-  setupPyBuildFlags = [ "WXPORT=gtk2" "NO_HEADERS=1" "BUILD_GLCANVAS=${if openglSupport then "1" else "0"}" "UNICODE=1" ];
-
-  installPhase = ''
-    ${python}/bin/${python.executable} setup.py ${stdenv.lib.concatStringsSep " " setupPyBuildFlags} install --prefix=$out
-  '';
 
-  inherit openglSupport;
+  sha256 = "0qfzx3sqx4mwxv99sfybhsij4b5pc03ricl73h4vhkzazgjjjhfm";
 
-  passthru = { inherit wxGTK openglSupport; };
-}
+})