2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
|
|
|
qtbase,
|
|
|
|
qtsvg,
|
|
|
|
qtwayland,
|
|
|
|
nixosTests,
|
|
|
|
wrapQtAppsHook,
|
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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.9.4";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-VkJOKKYnoXux3WjD1JwINGWwv1SMIXfidyV2ITE7dJc=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = 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 = [
|
2024-01-02 11:29:13 +00:00
|
|
|
qtwayland
|
|
|
|
qtbase
|
2024-07-27 06:49:29 +00:00
|
|
|
qtsvg # Needed for the systray icon
|
2022-11-02 22:02:43 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [ 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;
|
2024-07-27 06:49:29 +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
|
|
|
};
|
|
|
|
}
|