pythonPackages.qscintilla-qt5: fix installation

This commit is contained in:
Lancelot SIX 2019-02-27 22:07:30 +01:00
parent def5aeb17f
commit b47f47ab10
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047
2 changed files with 17 additions and 17 deletions

View File

@ -1,19 +1,18 @@
{ lib
, buildPythonPackage
, qscintillaCpp
, pythonPackages
, qscintilla
, lndir
, sip
, python
, pyqt5 }:
, qtbase
}:
with pythonPackages;
buildPythonPackage rec {
pname = "qscintilla";
version = qscintillaCpp.version;
src = qscintillaCpp.src;
version = qscintilla.version;
src = qscintilla.src;
format = "other";
nativeBuildInputs = [ lndir sip ];
buildInputs = [ qscintillaCpp ];
nativeBuildInputs = [ lndir sip qtbase ];
buildInputs = [ qscintilla ];
propagatedBuildInputs = [ pyqt5 ];
preConfigure = ''
@ -23,13 +22,14 @@ buildPythonPackage rec {
cd Python
${python.executable} ./configure.py \
--pyqt=PyQt5 \
--destdir=$out/lib/${python.sitePackages}/PyQt5 \
--stubsdir=$out/lib/${python.sitePackages}/PyQt5 \
--destdir=$out/${python.sitePackages}/PyQt5 \
--stubsdir=$out/${python.sitePackages}/PyQt5 \
--apidir=$out/api/${python.libPrefix} \
--qsci-incdir=${qscintillaCpp}/include \
--qsci-libdir=${qscintillaCpp}/lib \
--qsci-incdir=${qscintilla}/include \
--qsci-libdir=${qscintilla}/lib \
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
--qsci-sipdir=$out/share/sip/PyQt5
--qsci-sipdir=$out/share/sip/PyQt5 \
--sip-incdir=${sip}/include
'';
meta = with lib; {

View File

@ -3990,8 +3990,8 @@ in {
qscintilla-qt4 = callPackage ../development/python-modules/qscintilla { };
qscintilla-qt5 = callPackage ../development/python-modules/qscintilla-qt5 {
qscintillaCpp = pkgs.libsForQt5.qscintilla;
qscintilla-qt5 = pkgs.libsForQt5.callPackage ../development/python-modules/qscintilla-qt5 {
pythonPackages = self;
lndir = pkgs.xorg.lndir;
};