diff options
author | hlolli <hlolli@gmail.com> | 2018-12-03 02:11:16 +0100 |
---|---|---|
committer | hlolli <hlolli@gmail.com> | 2018-12-03 02:11:16 +0100 |
commit | e75ecf777b93228f889fbe8c6642bde1a1804c13 (patch) | |
tree | 0869bb394ead966ed8053dac213a68ac6d7c166d /pkgs/development/libraries/python-qt | |
parent | 6de18342d9517c15811f06c2f8800458da0a5cec (diff) |
python-qt init 3.2
Diffstat (limited to 'pkgs/development/libraries/python-qt')
-rw-r--r-- | pkgs/development/libraries/python-qt/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/python-qt/default.nix b/pkgs/development/libraries/python-qt/default.nix new file mode 100644 index 000000000000..e1f2596f87c1 --- /dev/null +++ b/pkgs/development/libraries/python-qt/default.nix @@ -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 ]; + }; +} |