mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
pythonPackages.qscintilla-qt5: init at 2.9.4
This commit is contained in:
parent
7f97ec6a16
commit
6c2bb2a3d0
2 changed files with 49 additions and 1 deletions
41
pkgs/development/python-modules/qscintilla-qt5/default.nix
Normal file
41
pkgs/development/python-modules/qscintilla-qt5/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, qscintillaCpp
|
||||
, lndir
|
||||
, sip
|
||||
, python
|
||||
, pyqt5 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qscintilla";
|
||||
version = qscintillaCpp.version;
|
||||
src = qscintillaCpp.src;
|
||||
format = "other";
|
||||
|
||||
nativeBuildInputs = [ lndir sip ];
|
||||
buildInputs = [ qscintillaCpp ];
|
||||
propagatedBuildInputs = [ pyqt5 ];
|
||||
|
||||
preConfigure = ''
|
||||
mkdir -p $out
|
||||
lndir ${pyqt5} $out
|
||||
rm -rf "$out/nix-support"
|
||||
cd Python
|
||||
${python.executable} ./configure.py \
|
||||
--pyqt=PyQt5 \
|
||||
--destdir=$out/lib/${python.sitePackages}/PyQt5 \
|
||||
--stubsdir=$out/lib/${python.sitePackages}/PyQt5 \
|
||||
--apidir=$out/api/${python.libPrefix} \
|
||||
--qsci-incdir=${qscintillaCpp}/include \
|
||||
--qsci-libdir=${qscintillaCpp}/lib \
|
||||
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
|
||||
--qsci-sipdir=$out/share/sip/PyQt5
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python binding to QScintilla, Qt based text editing control";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ lsix ];
|
||||
homepage = https://www.riverbankcomputing.com/software/qscintilla/;
|
||||
};
|
||||
}
|
|
@ -3857,7 +3857,14 @@ in {
|
|||
# alias for an older package which did not support Python 3
|
||||
Quandl = callPackage ../development/python-modules/quandl { };
|
||||
|
||||
qscintilla = callPackage ../development/python-modules/qscintilla { };
|
||||
qscintilla-qt4 = callPackage ../development/python-modules/qscintilla { };
|
||||
|
||||
qscintilla-qt5 = callPackage ../development/python-modules/qscintilla-qt5 {
|
||||
qscintillaCpp = pkgs.libsForQt5.qscintilla;
|
||||
lndir = pkgs.xorg.lndir;
|
||||
};
|
||||
|
||||
qscintilla = self.qscintilla-qt4;
|
||||
|
||||
qserve = callPackage ../development/python-modules/qserve { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue