summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-10-30 23:00:51 +0100
committerGitHub <noreply@github.com>2022-10-30 23:00:51 +0100
commit9b32e3415ee086a36effa9db835ca90e0bf7588e (patch)
treee74e5d61a54c464be003811750abba9038d9b82e
parentcf97d84982c3d08139cd011f517f7bd57854faeb (diff)
parente10848c39bf74c8638f2a715d72f362f599b0e88 (diff)
downloadnixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar.gz
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar.bz2
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar.lz
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar.xz
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.tar.zst
nixpkgs-9b32e3415ee086a36effa9db835ca90e0bf7588e.zip
Merge pull request #194821 from SFrijters/maestral-qt-1.6.3
maestral-qt: 1.5.3 -> 1.6.3
-rw-r--r--pkgs/applications/networking/maestral-qt/default.nix53
1 files changed, 20 insertions, 33 deletions
diff --git a/pkgs/applications/networking/maestral-qt/default.nix b/pkgs/applications/networking/maestral-qt/default.nix
index 059a4585c7d..1be323decab 100644
--- a/pkgs/applications/networking/maestral-qt/default.nix
+++ b/pkgs/applications/networking/maestral-qt/default.nix
@@ -1,63 +1,50 @@
 { lib
 , fetchFromGitHub
 , python3
-, wrapQtAppsHook
+, qt6
 , nixosTests
 }:
 
-let
-  inherit (pypkgs) makePythonPath;
-
-  pypkgs = (python3.override {
-    packageOverrides = self: super: {
-      # Use last available version of maestral that still supports PyQt5
-      # Remove this override when PyQt6 is available
-      maestral = super.maestral.overridePythonAttrs (old: rec {
-        version = "1.5.3";
-        src = fetchFromGitHub {
-          owner = "SamSchott";
-          repo = "maestral";
-          rev = "refs/tags/v${version}";
-          hash = "sha256-Uo3vcYez2qSq162SSKjoCkwygwR5awzDceIq8/h3dao=";
-        };
-      });
-    };
-  }).pkgs;
-
-in
-pypkgs.buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
   pname = "maestral-qt";
-  version = "1.5.3";
-  disabled = pypkgs.pythonOlder "3.6";
+  version = "1.6.3";
+  disabled = python3.pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "SamSchott";
     repo = "maestral-qt";
     rev = "refs/tags/v${version}";
-    sha256 = "sha256-zaG9Zwz9S/SVb7xDa7eXkjLNt1BhA1cQ3I18rVt+8uQ=";
+    sha256 = "sha256-Fvr5WhrhxPBeAMsrVj/frg01qgt2SeWgrRJYgBxRFHc=";
   };
 
   format = "pyproject";
 
-  propagatedBuildInputs = with pypkgs; [
+  propagatedBuildInputs = with python3.pkgs; [
     click
     markdown2
     maestral
     packaging
-    pyqt5
-  ] ++ lib.optionals (pythonOlder "3.9") [
-    importlib-resources
+    pyqt6
+  ];
+
+  buildInputs = [
+    qt6.qtbase
+    qt6.qtsvg  # Needed for the systray icon
+  ];
+
+  nativeBuildInputs = [
+    qt6.wrapQtAppsHook
   ];
 
-  nativeBuildInputs = [ wrapQtAppsHook ];
+  dontWrapQtApps = true;
 
-  makeWrapperArgs = [
+  makeWrapperArgs = with python3.pkgs; [
     # Firstly, add all necessary QT variables
     "\${qtWrapperArgs[@]}"
 
     # Add the installed directories to the python path so the daemon can find them
-    "--prefix PYTHONPATH : ${makePythonPath (pypkgs.requiredPythonModules pypkgs.maestral.propagatedBuildInputs)}"
-    "--prefix PYTHONPATH : ${makePythonPath [ pypkgs.maestral ]}"
+    "--prefix PYTHONPATH : ${makePythonPath (requiredPythonModules maestral.propagatedBuildInputs)}"
+    "--prefix PYTHONPATH : ${makePythonPath [ maestral ]}"
   ];
 
   # no tests