2018-10-26 17:03:02 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, disabledIf
|
|
|
|
, isPy3k
|
|
|
|
, isPyPy
|
|
|
|
, pkgs
|
|
|
|
, python
|
|
|
|
, pyqt4
|
|
|
|
}:
|
|
|
|
|
|
|
|
disabledIf (isPy3k || isPyPy)
|
2019-08-13 22:52:01 +01:00
|
|
|
(buildPythonPackage {
|
2018-10-26 17:03:02 +01:00
|
|
|
# TODO: Qt5 support
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qscintilla";
|
2018-10-26 17:03:02 +01:00
|
|
|
version = pkgs.qscintilla.version;
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = pkgs.qscintilla.src;
|
|
|
|
|
2019-03-04 10:54:44 +00:00
|
|
|
nativeBuildInputs = [ pkgs.xorg.lndir ];
|
|
|
|
|
|
|
|
buildInputs = [ pyqt4.qt pyqt4 ];
|
2018-10-26 17:03:02 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
mkdir -p $out
|
|
|
|
lndir ${pyqt4} $out
|
|
|
|
rm -rf "$out/nix-support"
|
|
|
|
cd Python
|
|
|
|
${python.executable} ./configure-old.py \
|
|
|
|
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
|
|
|
|
--apidir $out/api/${python.libPrefix} \
|
|
|
|
-n ${pkgs.qscintilla}/include \
|
|
|
|
-o ${pkgs.qscintilla}/lib \
|
|
|
|
--sipdir $out/share/sip
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python binding to QScintilla, Qt based text editing control";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ danbst ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
})
|