2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchurl, python, qmake,
|
2018-12-02 17:11:16 -08:00
|
|
|
qtwebengine, qtxmlpatterns,
|
|
|
|
qttools, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.2";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "python-qt";
|
2018-12-02 17:11:16 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url="mirror://sourceforge/pythonqt/PythonQt${version}.zip";
|
|
|
|
sha256="13hzprk58m3yj39sj0xn6acg8796lll1256mpd81kw0z3yykyl8c";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "all" ];
|
|
|
|
|
2021-02-20 13:01:53 -08:00
|
|
|
nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns qttools unzip ];
|
2018-12-02 17:11:16 -08:00
|
|
|
|
2021-02-20 13:01:53 -08:00
|
|
|
buildInputs = [ python ];
|
2018-12-02 17:11:16 -08:00
|
|
|
|
|
|
|
qmakeFlags = [ "PythonQt.pro"
|
|
|
|
"INCLUDEPATH+=${python}/include/python3.6"
|
|
|
|
"PYTHON_PATH=${python}/bin"
|
|
|
|
"PYTHON_LIB=${python}/lib"];
|
|
|
|
|
2021-01-12 03:50:23 -08:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2018-12-02 17:11:16 -08:00
|
|
|
unpackCmd = "unzip $src";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/PythonQt
|
|
|
|
cp -r ./lib $out
|
|
|
|
cp -r ./src/* $out/include/PythonQt
|
2019-03-09 10:38:26 -08:00
|
|
|
cp -r ./build $out/include/PythonQt
|
|
|
|
cp -r ./extensions $out/include/PythonQt
|
2018-12-02 17:11:16 -08:00
|
|
|
'';
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2020-10-10 22:55:05 -07:00
|
|
|
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";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://pythonqt.sourceforge.net/";
|
2018-12-02 17:11:16 -08:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hlolli ];
|
|
|
|
};
|
|
|
|
}
|