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