2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-06-16 17:46:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
2022-09-29 22:20:22 +00:00
|
|
|
, qt6
|
2022-04-01 02:41:43 +00:00
|
|
|
, nixosTests
|
2020-06-16 17:46:10 +00:00
|
|
|
}:
|
|
|
|
|
2022-09-29 22:20:22 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-06-16 17:46:10 +00:00
|
|
|
pname = "maestral-qt";
|
2023-07-24 22:14:20 +00:00
|
|
|
version = "1.8.0";
|
2022-09-29 22:20:22 +00:00
|
|
|
disabled = python3.pythonOlder "3.7";
|
2020-06-16 17:46:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SamSchott";
|
|
|
|
repo = "maestral-qt";
|
2022-08-02 02:51:23 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-24 22:14:20 +00:00
|
|
|
hash = "sha256-Ys7XrvV4qzq4Q9llua2WgU013Ui0+x+uMwLNIv6xxCw=";
|
2020-06-16 17:46:10 +00:00
|
|
|
};
|
|
|
|
|
2022-02-02 20:27:55 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-09-29 22:20:22 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-06-16 17:46:10 +00:00
|
|
|
click
|
|
|
|
markdown2
|
|
|
|
maestral
|
2020-10-08 22:45:08 +00:00
|
|
|
packaging
|
2022-09-29 22:20:22 +00:00
|
|
|
pyqt6
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtsvg # Needed for the systray icon
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qt6.wrapQtAppsHook
|
2020-06-16 17:46:10 +00:00
|
|
|
];
|
|
|
|
|
2022-09-29 22:20:22 +00:00
|
|
|
dontWrapQtApps = true;
|
2020-06-16 17:46:10 +00:00
|
|
|
|
2022-09-29 22:20:22 +00:00
|
|
|
makeWrapperArgs = with python3.pkgs; [
|
2020-06-16 17:46:10 +00:00
|
|
|
# Firstly, add all necessary QT variables
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
|
|
|
|
# Add the installed directories to the python path so the daemon can find them
|
2022-09-29 22:20:22 +00:00
|
|
|
"--prefix PYTHONPATH : ${makePythonPath (requiredPythonModules maestral.propagatedBuildInputs)}"
|
|
|
|
"--prefix PYTHONPATH : ${makePythonPath [ maestral ]}"
|
2020-06-16 17:46:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-22 20:56:57 +00:00
|
|
|
pythonImportsCheck = [ "maestral_qt" ];
|
|
|
|
|
2022-04-01 02:41:43 +00:00
|
|
|
passthru.tests.maestral = nixosTests.maestral;
|
|
|
|
|
2020-06-16 17:46:10 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI front-end for maestral (an open-source Dropbox client) for Linux";
|
2022-11-24 22:03:31 +00:00
|
|
|
homepage = "https://maestral.app";
|
|
|
|
changelog = "https://github.com/samschott/maestral/releases/tag/v${version}";
|
2020-06-16 17:46:10 +00:00
|
|
|
license = licenses.mit;
|
2022-08-01 17:16:21 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg sfrijters ];
|
2020-06-16 17:46:10 +00:00
|
|
|
platforms = platforms.linux;
|
2022-11-24 22:03:31 +00:00
|
|
|
mainProgram = "maestral_qt";
|
2020-06-16 17:46:10 +00:00
|
|
|
};
|
|
|
|
}
|