diff options
author | Stefan Frijters <sfrijters@gmail.com> | 2022-09-30 00:20:22 +0200 |
---|---|---|
committer | Stefan Frijters <sfrijters@gmail.com> | 2022-10-07 00:15:44 +0200 |
commit | e10848c39bf74c8638f2a715d72f362f599b0e88 (patch) | |
tree | 2f16f8914cb8a75e7c28ebe758ff5901a6073ace /pkgs/applications/networking/maestral-qt | |
parent | 74ca3d74b57045f0e7fc4d77d127f959dd42fc08 (diff) |
maestral-qt: 1.5.3 -> 1.6.3
Use maestral 1.6.3 and pyqt6.
Diffstat (limited to 'pkgs/applications/networking/maestral-qt')
-rw-r--r-- | pkgs/applications/networking/maestral-qt/default.nix | 53 |
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 059a4585c7d3d..1be323decab42 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 |