1{ lib 2, buildPythonPackage 3, disabledIf 4, isPy3k 5, isPyPy 6, pkgs 7, python 8, pyqt4 9}: 10 11disabledIf (isPy3k || isPyPy) 12 (buildPythonPackage { 13 # TODO: Qt5 support 14 pname = "qscintilla"; 15 version = pkgs.qscintilla.version; 16 format = "other"; 17 18 src = pkgs.qscintilla.src; 19 20 nativeBuildInputs = [ pkgs.xorg.lndir ]; 21 22 buildInputs = [ pyqt4.qt pyqt4 ]; 23 24 preConfigure = '' 25 mkdir -p $out 26 lndir ${pyqt4} $out 27 rm -rf "$out/nix-support" 28 cd Python 29 ${python.executable} ./configure-old.py \ 30 --destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \ 31 --apidir $out/api/${python.libPrefix} \ 32 -n ${pkgs.qscintilla}/include \ 33 -o ${pkgs.qscintilla}/lib \ 34 --sipdir $out/share/sip 35 ''; 36 37 meta = with lib; { 38 description = "A Python binding to QScintilla, Qt based text editing control"; 39 license = licenses.lgpl21Plus; 40 maintainers = with maintainers; [ danbst ]; 41 platforms = platforms.unix; 42 }; 43 })