python-qt init 3.2
This commit is contained in:
parent
6de18342d9
commit
e75ecf777b
|
@ -0,0 +1,42 @@
|
||||||
|
{ stdenv, fetchurl, python, qmake,
|
||||||
|
qtwebengine, qtxmlpatterns,
|
||||||
|
qttools, unzip }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "3.2";
|
||||||
|
name = "python-qt-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url="mirror://sourceforge/pythonqt/PythonQt${version}.zip";
|
||||||
|
sha256="13hzprk58m3yj39sj0xn6acg8796lll1256mpd81kw0z3yykyl8c";
|
||||||
|
};
|
||||||
|
|
||||||
|
hardeningDisable = [ "all" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns qttools ];
|
||||||
|
|
||||||
|
buildInputs = [ python unzip ];
|
||||||
|
|
||||||
|
qmakeFlags = [ "PythonQt.pro"
|
||||||
|
"INCLUDEPATH+=${python}/include/python3.6"
|
||||||
|
"PYTHON_PATH=${python}/bin"
|
||||||
|
"PYTHON_LIB=${python}/lib"];
|
||||||
|
|
||||||
|
unpackCmd = "unzip $src";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/include/PythonQt
|
||||||
|
cp -r ./lib $out
|
||||||
|
cp -r ./src/* $out/include/PythonQt
|
||||||
|
cp extensions/PythonQt_QtAll/PythonQt_QtAll.h $out/include/PythonQt
|
||||||
|
cp extensions/PythonQt_QtAll/PythonQt_QtAll.cpp $out/include/PythonQt
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "PythonQt is a dynamic Python binding for the Qt framework. It offers an easy way to embed the Python scripting language into your C++ Qt applications.";
|
||||||
|
homepage = http://pythonqt.sourceforge.net/;
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ hlolli ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11912,6 +11912,14 @@ with pkgs;
|
||||||
|
|
||||||
pybind11 = callPackage ../development/libraries/pybind11 { };
|
pybind11 = callPackage ../development/libraries/pybind11 { };
|
||||||
|
|
||||||
|
python-qt = callPackage ../development/libraries/python-qt {
|
||||||
|
python = python27;
|
||||||
|
qmake = qt59.qmake;
|
||||||
|
qttools = qt59.qttools;
|
||||||
|
qtwebengine = qt59.qtwebengine;
|
||||||
|
qtxmlpatterns = qt59.qtxmlpatterns;
|
||||||
|
};
|
||||||
|
|
||||||
re2 = callPackage ../development/libraries/re2 { };
|
re2 = callPackage ../development/libraries/re2 { };
|
||||||
|
|
||||||
qbs = libsForQt5.callPackage ../development/tools/build-managers/qbs { };
|
qbs = libsForQt5.callPackage ../development/tools/build-managers/qbs { };
|
||||||
|
|
Loading…
Reference in New Issue