at 22.05-pre 1.3 kB view raw
1{ lib, stdenv, fetchurl, python, qmake, 2 qtwebengine, qtxmlpatterns, 3 qttools, unzip }: 4 5stdenv.mkDerivation rec { 6 version = "3.2"; 7 pname = "python-qt"; 8 9 src = fetchurl { 10 url="mirror://sourceforge/pythonqt/PythonQt${version}.zip"; 11 sha256="13hzprk58m3yj39sj0xn6acg8796lll1256mpd81kw0z3yykyl8c"; 12 }; 13 14 hardeningDisable = [ "all" ]; 15 16 nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns qttools unzip ]; 17 18 buildInputs = [ python ]; 19 20 qmakeFlags = [ "PythonQt.pro" 21 "INCLUDEPATH+=${python}/include/python3.6" 22 "PYTHON_PATH=${python}/bin" 23 "PYTHON_LIB=${python}/lib"]; 24 25 dontWrapQtApps = true; 26 27 unpackCmd = "unzip $src"; 28 29 installPhase = '' 30 mkdir -p $out/include/PythonQt 31 cp -r ./lib $out 32 cp -r ./src/* $out/include/PythonQt 33 cp -r ./build $out/include/PythonQt 34 cp -r ./extensions $out/include/PythonQt 35 ''; 36 37 meta = with lib; { 38 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"; 39 homepage = "http://pythonqt.sourceforge.net/"; 40 license = licenses.lgpl21; 41 platforms = platforms.all; 42 maintainers = with maintainers; [ hlolli ]; 43 }; 44}