Merge pull request #97101 from fricklerhandwerk/wxpython

authored by

Sandro and committed by
GitHub
403ea9f2 cc2462d4

+33 -11
+8 -3
pkgs/applications/science/robotics/mavproxy/default.nix
··· 1 - { lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial 2 - , setuptools, wxPython_4_0 }: 3 4 buildPythonApplication rec { 5 pname = "MAVProxy"; ··· 10 sha256 = "fe046481b793b592334749249620fce8a463f4c46b394ff744645975465d677b"; 11 }; 12 13 propagatedBuildInputs = [ 14 matplotlib 15 numpy ··· 17 pyserial 18 setuptools 19 wxPython_4_0 20 - ]; 21 22 # No tests 23 doCheck = false;
··· 1 + { stdenv, lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial 2 + , setuptools, wxPython_4_0, billiard, gnureadline }: 3 4 buildPythonApplication rec { 5 pname = "MAVProxy"; ··· 10 sha256 = "fe046481b793b592334749249620fce8a463f4c46b394ff744645975465d677b"; 11 }; 12 13 + postPatch = '' 14 + substituteInPlace setup.py \ 15 + --replace "opencv-python" "" 16 + ''; 17 + 18 propagatedBuildInputs = [ 19 matplotlib 20 numpy ··· 22 pyserial 23 setuptools 24 wxPython_4_0 25 + ] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ]; 26 27 # No tests 28 doCheck = false;
+3 -3
pkgs/development/libraries/wxwidgets/3.0/mac.nix
··· 1 { stdenv, fetchzip, expat, libiconv, libjpeg, libpng, libtiff, zlib 2 # darwin only attributes 3 , derez, rez, setfile 4 - , AGL, Cocoa, Kernel 5 }: 6 7 stdenv.mkDerivation rec { 8 - version = "3.0.4"; 9 pname = "wxmac"; 10 11 src = fetchzip { ··· 16 buildInputs = [ 17 expat libiconv libjpeg libpng libtiff zlib 18 derez rez setfile 19 - AGL Cocoa Kernel 20 ]; 21 22 postPatch = ''
··· 1 { stdenv, fetchzip, expat, libiconv, libjpeg, libpng, libtiff, zlib 2 # darwin only attributes 3 , derez, rez, setfile 4 + , AGL, Cocoa, Kernel, WebKit 5 }: 6 7 stdenv.mkDerivation rec { 8 + version = "3.0.5.1"; 9 pname = "wxmac"; 10 11 src = fetchzip { ··· 16 buildInputs = [ 17 expat libiconv libjpeg libpng libtiff zlib 18 derez rez setfile 19 + AGL Cocoa Kernel WebKit 20 ]; 21 22 postPatch = ''
+20 -4
pkgs/development/python-modules/wxPython/4.0.nix
··· 9 , python 10 , doxygen 11 , ncurses 12 - , wxGTK 13 , numpy 14 , pillow 15 , six 16 }: 17 18 buildPythonPackage rec { ··· 26 27 doCheck = false; 28 29 - nativeBuildInputs = [ pkgconfig which doxygen wxGTK ]; 30 - buildInputs = [ ncurses wxGTK.gtk ]; 31 32 DOXYGEN = "${doxygen}/bin/doxygen"; 33 ··· 50 ${python.interpreter} setup.py install --skip-build --prefix=$out 51 ''; 52 53 - passthru = { inherit wxGTK; }; 54 55 56 meta = {
··· 9 , python 10 , doxygen 11 , ncurses 12 + , libintl 13 , numpy 14 , pillow 15 , six 16 + , wxGTK 17 + , wxmac 18 + , IOKit 19 + , Carbon 20 + , Cocoa 21 + , AudioToolbox 22 + , OpenGL 23 + , CoreFoundation 24 }: 25 26 buildPythonPackage rec { ··· 34 35 doCheck = false; 36 37 + nativeBuildInputs = [ pkgconfig which doxygen ] 38 + ++ (if stdenv.isDarwin then [ wxmac ] else [ wxGTK ]); 39 + 40 + buildInputs = [ ncurses libintl ] 41 + ++ (if stdenv.isDarwin 42 + then 43 + [ AudioToolbox Carbon Cocoa CoreFoundation IOKit OpenGL ] 44 + else 45 + [ wxGTK.gtk ] 46 + ); 47 48 DOXYGEN = "${doxygen}/bin/doxygen"; 49 ··· 66 ${python.interpreter} setup.py install --skip-build --prefix=$out 67 ''; 68 69 + passthru = { wxWidgets = if stdenv.isDarwin then wxmac else wxGTK; }; 70 71 72 meta = {
+1 -1
pkgs/top-level/all-packages.nix
··· 17090 }; 17091 17092 wxmac = callPackage ../development/libraries/wxwidgets/3.0/mac.nix { 17093 - inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel; 17094 inherit (darwin.stubs) setfile rez derez; 17095 }; 17096
··· 17090 }; 17091 17092 wxmac = callPackage ../development/libraries/wxwidgets/3.0/mac.nix { 17093 + inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel WebKit; 17094 inherit (darwin.stubs) setfile rez derez; 17095 }; 17096
+1
pkgs/top-level/python-packages.nix
··· 8143 8144 wxPython_4_0 = callPackage ../development/python-modules/wxPython/4.0.nix { 8145 inherit (pkgs) pkgconfig; 8146 wxGTK = pkgs.wxGTK30.override { 8147 withGtk2 = false; 8148 withWebKit = true;
··· 8143 8144 wxPython_4_0 = callPackage ../development/python-modules/wxPython/4.0.nix { 8145 inherit (pkgs) pkgconfig; 8146 + inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox Carbon Cocoa CoreFoundation IOKit OpenGL; 8147 wxGTK = pkgs.wxGTK30.override { 8148 withGtk2 = false; 8149 withWebKit = true;