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 1 { lib, stdenv, csound, desktop-file-utils, 2 - fetchFromGitHub, python, python-qt, qmake, 2 + fetchFromGitHub, python3, python-qt, qmake, 3 3 qtwebengine, qtxmlpatterns, rtmidi, wrapQtAppsHook }: 4 4 5 5 stdenv.mkDerivation rec { ··· 26 26 "CSOUND_INCLUDE_DIR=${csound}/include/csound" 27 27 "CSOUND_LIBRARY_DIR=${csound}/lib" 28 28 "RTMIDI_DIR=${rtmidi.src}" 29 - "PYTHONQT_SRC_DIR=${python-qt}/include/PythonQt" 29 + "PYTHONQT_SRC_DIR=${python-qt.src}" 30 30 "PYTHONQT_LIB_DIR=${python-qt}/lib" 31 31 "LIBS+=-L${python-qt}/lib" 32 - "INCLUDEPATH+=${python-qt}/include/PythonQt" 33 - "INCLUDEPATH+=${python}/include/python${python.pythonVersion}" 34 32 "INSTALL_DIR=${placeholder "out"}" 35 33 "SHARE_DIR=${placeholder "out"}/share" 34 + "PYTHON_DIR=${python3}" 35 + "PYTHON_VERSION=3.${python3.sourceVersion.minor}" 36 36 ]; 37 37 38 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 }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + fetchpatch, 6 + python3, 7 + qmake, 8 + qtwebengine, 9 + qtxmlpatterns, 10 + qttools, 11 + }: 4 12 5 - stdenv.mkDerivation rec { 13 + stdenv.mkDerivation (finalAttrs: { 6 14 pname = "python-qt"; 7 - version = "3.4.2"; 15 + version = "3.5.1"; 8 16 9 17 src = fetchFromGitHub { 10 18 owner = "MeVisLab"; 11 19 repo = "pythonqt"; 12 - rev = "v${version}"; 13 - hash = "sha256-xJYOD07ACOKtY3psmfHNSCjm6t0fr8JU9CrL0w5P5G0="; 20 + rev = "v${finalAttrs.version}"; 21 + hash = "sha256-IED6UFk8UTle7g/yPC0nXOEgJwrs6sB/Dk3OTyVgHPo="; 14 22 }; 15 23 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 ]; 24 + nativeBuildInputs = [ 25 + qmake 26 + qttools 27 + qtxmlpatterns 28 + qtwebengine 29 + ]; 25 30 26 - buildInputs = [ python ]; 31 + buildInputs = [ python3 ]; 27 32 28 33 qmakeFlags = [ 29 - "PythonQt.pro" 30 - "PYTHON_DIR=${python}" 34 + "PYTHON_DIR=${python3}" 35 + "PYTHON_VERSION=3.${python3.sourceVersion.minor}" 31 36 ]; 32 37 33 38 dontWrapQtApps = true; 34 - 35 - unpackCmd = "unzip $src"; 36 39 37 40 installPhase = '' 38 41 mkdir -p $out/include/PythonQt ··· 42 45 cp -r ./extensions $out/include/PythonQt 43 46 ''; 44 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 + 45 57 meta = with lib; { 46 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"; 47 59 homepage = "https://pythonqt.sourceforge.net/"; ··· 49 61 platforms = platforms.all; 50 62 maintainers = with maintainers; [ hlolli ]; 51 63 }; 52 - } 64 + })
+2 -13
pkgs/top-level/all-packages.nix
··· 24071 24071 24072 24072 pylode = callPackage ../misc/pylode { }; 24073 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 - }); 24074 + python-qt = libsForQt5.callPackage ../development/libraries/python-qt { }; 24084 24075 24085 24076 pyotherside = libsForQt5.callPackage ../development/libraries/pyotherside { }; 24086 24077 ··· 30344 30335 30345 30336 csound-manual = callPackage ../applications/audio/csound/csound-manual { }; 30346 30337 30347 - csound-qt = libsForQt5.callPackage ../applications/audio/csound/csound-qt { 30348 - python = python3; 30349 - }; 30338 + csound-qt = libsForQt5.callPackage ../applications/audio/csound/csound-qt { }; 30350 30339 30351 30340 codeblocks = callPackage ../applications/editors/codeblocks { }; 30352 30341 codeblocksFull = codeblocks.override { contribPlugins = true; };