summary refs log tree commit diff
path: root/pkgs/development/python-modules/wxPython
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-09-11 14:29:20 +0200
committerDomen Kožar <domen@dev.si>2014-09-12 00:26:50 +0200
commit2632afa13121bdce1f6d8e9dcfdf754b0fe0b669 (patch)
tree275a70e438dbb9a82954316d589e1fab48bb978d /pkgs/development/python-modules/wxPython
parenta44de69d06e382768c31a3817e9f3ab7f7cc9e3d (diff)
downloadnixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar.gz
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar.bz2
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar.lz
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar.xz
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.tar.zst
nixpkgs-2632afa13121bdce1f6d8e9dcfdf754b0fe0b669.zip
pypy: handle unsupported packages
Diffstat (limited to 'pkgs/development/python-modules/wxPython')
-rw-r--r--pkgs/development/python-modules/wxPython/2.8.nix4
-rw-r--r--pkgs/development/python-modules/wxPython/3.0.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/wxPython/2.8.nix b/pkgs/development/python-modules/wxPython/2.8.nix
index 8819605528d..64dd59242c2 100644
--- a/pkgs/development/python-modules/wxPython/2.8.nix
+++ b/pkgs/development/python-modules/wxPython/2.8.nix
@@ -1,10 +1,10 @@
-{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages }:
+{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, python, isPyPy }:
 
 assert wxGTK.unicode;
 
 let version = "2.8.12.1"; in
 
-stdenv.mkDerivation {
+if isPyPy then throw "wxPython-${version} not supported for interpreter ${python.executable}" else stdenv.mkDerivation {
   name = "wxPython-${version}";
   
   builder = ./builder.sh;
diff --git a/pkgs/development/python-modules/wxPython/3.0.nix b/pkgs/development/python-modules/wxPython/3.0.nix
index 9aa6148643b..4f89dbeb410 100644
--- a/pkgs/development/python-modules/wxPython/3.0.nix
+++ b/pkgs/development/python-modules/wxPython/3.0.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true }:
+{ stdenv, fetchurl, pkgconfig, wxGTK, pythonPackages, openglSupport ? true, python, isPyPy }:
 
 assert wxGTK.unicode;
 
@@ -6,7 +6,7 @@ with stdenv.lib;
 
 let version = "3.0.0.0"; in
 
-stdenv.mkDerivation {
+if isPyPy then throw "wxPython-${version} not supported for interpreter ${python.executable}" else stdenv.mkDerivation {
   name = "wxPython-${version}";
   
   builder = ./builder3.0.sh;