2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "maestral-qt";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "1.4.8";
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = python3.pkgs.pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SamSchott";
|
|
|
|
repo = "maestral-qt";
|
|
|
|
rev = "v${version}";
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "sha256-lP6ASWizIQC3TkkIOHS6cBbgLNoGrSx/sThtl9bMjys=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
click
|
|
|
|
markdown2
|
|
|
|
maestral
|
2020-10-11 12:50:04 +00:00
|
|
|
packaging
|
2020-07-18 16:06:22 +00:00
|
|
|
pyqt5
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
2020-12-25 13:55:36 +00:00
|
|
|
importlib-resources
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
# Firstly, add all necessary QT variables
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
|
|
|
|
# Add the installed directories to the python path so the daemon can find them
|
2021-01-15 22:18:51 +00:00
|
|
|
"--prefix" "PYTHONPATH" ":" "${lib.concatStringsSep ":" (map (p: p + "/lib/${python3.libPrefix}/site-packages") (python3.pkgs.requiredPythonModules python3.pkgs.maestral.propagatedBuildInputs))}"
|
2020-07-18 16:06:22 +00:00
|
|
|
"--prefix" "PYTHONPATH" ":" "${python3.pkgs.maestral}/lib/${python3.libPrefix}/site-packages"
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
pythonImportsCheck = [ "maestral_qt" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI front-end for maestral (an open-source Dropbox client) for Linux";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://maestral.app";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|