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