Merge pull request #302361 from nim65s/pythonqt

python-qt: 3.4.2 -> 3.5.1

authored by Pol Dellaiera and committed by GitHub c9d72a6f 1a8423b7

+40 -39
+4 -4
pkgs/applications/audio/csound/csound-qt/default.nix
··· 1 { lib, stdenv, csound, desktop-file-utils, 2 - fetchFromGitHub, python, python-qt, qmake, 3 qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }: 4 5 stdenv.mkDerivation rec { ··· 26 "CSOUND_INCLUDE_DIR=${csound}/include/csound" 27 "CSOUND_LIBRARY_DIR=${csound}/lib" 28 "RTMIDI_DIR=${rtmidi.src}" 29 - "PYTHONQT_SRC_DIR=${python-qt}/include/PythonQt" 30 "PYTHONQT_LIB_DIR=${python-qt}/lib" 31 "LIBS+=-L${python-qt}/lib" 32 - "INCLUDEPATH+=${python-qt}/include/PythonQt" 33 - "INCLUDEPATH+=${python}/include/python${python.pythonVersion}" 34 "INSTALL_DIR=${placeholder "out"}" 35 "SHARE_DIR=${placeholder "out"}/share" 36 ]; 37 38 meta = with lib; {
··· 1 { lib, stdenv, csound, desktop-file-utils, 2 + fetchFromGitHub, python3, python-qt, qmake, 3 qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }: 4 5 stdenv.mkDerivation rec { ··· 26 "CSOUND_INCLUDE_DIR=${csound}/include/csound" 27 "CSOUND_LIBRARY_DIR=${csound}/lib" 28 "RTMIDI_DIR=${rtmidi.src}" 29 + "PYTHONQT_SRC_DIR=${python-qt.src}" 30 "PYTHONQT_LIB_DIR=${python-qt}/lib" 31 "LIBS+=-L${python-qt}/lib" 32 "INSTALL_DIR=${placeholder "out"}" 33 "SHARE_DIR=${placeholder "out"}/share" 34 + "PYTHON_DIR=${python3}" 35 + "PYTHON_VERSION=3.${python3.sourceVersion.minor}" 36 ]; 37 38 meta = with lib; {
+34 -22
pkgs/development/libraries/python-qt/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, python, qmake, 2 - qtwebengine, qtxmlpatterns, 3 - qttools, unzip }: 4 5 - stdenv.mkDerivation rec { 6 pname = "python-qt"; 7 - version = "3.4.2"; 8 9 src = fetchFromGitHub { 10 owner = "MeVisLab"; 11 repo = "pythonqt"; 12 - rev = "v${version}"; 13 - hash = "sha256-xJYOD07ACOKtY3psmfHNSCjm6t0fr8JU9CrL0w5P5G0="; 14 }; 15 16 - # https://github.com/CsoundQt/CsoundQt/blob/develop/BUILDING.md#pythonqt 17 - postPatch = '' 18 - substituteInPlace build/python.prf \ 19 - --replace "PYTHON_VERSION=2.7" "PYTHON_VERSION=${python.pythonVersion}" 20 - ''; 21 - 22 - hardeningDisable = [ "all" ]; 23 - 24 - nativeBuildInputs = [ qmake qtwebengine qtxmlpatterns qttools unzip ]; 25 26 - buildInputs = [ python ]; 27 28 qmakeFlags = [ 29 - "PythonQt.pro" 30 - "PYTHON_DIR=${python}" 31 ]; 32 33 dontWrapQtApps = true; 34 - 35 - unpackCmd = "unzip $src"; 36 37 installPhase = '' 38 mkdir -p $out/include/PythonQt ··· 42 cp -r ./extensions $out/include/PythonQt 43 ''; 44 45 meta = with lib; { 46 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"; 47 homepage = "https://pythonqt.sourceforge.net/"; ··· 49 platforms = platforms.all; 50 maintainers = with maintainers; [ hlolli ]; 51 }; 52 - }
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + fetchpatch, 6 + python3, 7 + qmake, 8 + qtwebengine, 9 + qtxmlpatterns, 10 + qttools, 11 + }: 12 13 + stdenv.mkDerivation (finalAttrs: { 14 pname = "python-qt"; 15 + version = "3.5.1"; 16 17 src = fetchFromGitHub { 18 owner = "MeVisLab"; 19 repo = "pythonqt"; 20 + rev = "v${finalAttrs.version}"; 21 + hash = "sha256-IED6UFk8UTle7g/yPC0nXOEgJwrs6sB/Dk3OTyVgHPo="; 22 }; 23 24 + nativeBuildInputs = [ 25 + qmake 26 + qttools 27 + qtxmlpatterns 28 + qtwebengine 29 + ]; 30 31 + buildInputs = [ python3 ]; 32 33 qmakeFlags = [ 34 + "PYTHON_DIR=${python3}" 35 + "PYTHON_VERSION=3.${python3.sourceVersion.minor}" 36 ]; 37 38 dontWrapQtApps = true; 39 40 installPhase = '' 41 mkdir -p $out/include/PythonQt ··· 45 cp -r ./extensions $out/include/PythonQt 46 ''; 47 48 + preFixup = lib.optionalString stdenv.isDarwin '' 49 + install_name_tool -id \ 50 + $out/lib/libPythonQt-Qt5-Python3.${python3.sourceVersion.minor}.dylib \ 51 + $out/lib/libPythonQt-Qt5-Python3.${python3.sourceVersion.minor}.dylib 52 + install_name_tool -id \ 53 + $out/lib/libPythonQt_QtAll-Qt5-Python3.${python3.sourceVersion.minor}.dylib \ 54 + $out/lib/libPythonQt_QtAll-Qt5-Python3.${python3.sourceVersion.minor}.dylib 55 + ''; 56 + 57 meta = with lib; { 58 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"; 59 homepage = "https://pythonqt.sourceforge.net/"; ··· 61 platforms = platforms.all; 62 maintainers = with maintainers; [ hlolli ]; 63 }; 64 + })
+2 -13
pkgs/top-level/all-packages.nix
··· 24071 24072 pylode = callPackage ../misc/pylode { }; 24073 24074 - python-qt = (callPackage ../development/libraries/python-qt { 24075 - python = python3; 24076 - inherit (builtins.mapAttrs (_: pkg: pkg.override (previousArgs: lib.optionalAttrs (previousArgs ? stdenv) { stdenv = gcc12Stdenv; })) qt5) 24077 - qmake qttools qtwebengine qtxmlpatterns; 24078 - stdenv = gcc12Stdenv; 24079 - }) 24080 - .overrideAttrs(previousAttrs: { 24081 - NIX_CFLAGS_COMPILE = "-w"; 24082 - meta = previousAttrs.meta // { broken = true; }; 24083 - }); 24084 24085 pyotherside = libsForQt5.callPackage ../development/libraries/pyotherside { }; 24086 ··· 30344 30345 csound-manual = callPackage ../applications/audio/csound/csound-manual { }; 30346 30347 - csound-qt = libsForQt5.callPackage ../applications/audio/csound/csound-qt { 30348 - python = python3; 30349 - }; 30350 30351 codeblocks = callPackage ../applications/editors/codeblocks { }; 30352 codeblocksFull = codeblocks.override { contribPlugins = true; };
··· 24071 24072 pylode = callPackage ../misc/pylode { }; 24073 24074 + python-qt = libsForQt5.callPackage ../development/libraries/python-qt { }; 24075 24076 pyotherside = libsForQt5.callPackage ../development/libraries/pyotherside { }; 24077 ··· 30335 30336 csound-manual = callPackage ../applications/audio/csound/csound-manual { }; 30337 30338 + csound-qt = libsForQt5.callPackage ../applications/audio/csound/csound-qt { }; 30339 30340 codeblocks = callPackage ../applications/editors/codeblocks { }; 30341 codeblocksFull = codeblocks.override { contribPlugins = true; };