nixpkgs/pkgs/applications/networking/maestral-qt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
2020-06-16 17:46:10 +00:00
, fetchFromGitHub
, python3
, qt6
2022-04-01 02:41:43 +00:00
, nixosTests
2020-06-16 17:46:10 +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";
disabled = python3.pythonOlder "3.7";
2020-06-16 17:46:10 +00:00
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-qt";
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";
propagatedBuildInputs = with python3.pkgs; [
2020-06-16 17:46:10 +00:00
click
markdown2
maestral
2020-10-08 22:45:08 +00:00
packaging
pyqt6
];
buildInputs = [
qt6.qtbase
qt6.qtsvg # Needed for the systray icon
];
nativeBuildInputs = [
qt6.wrapQtAppsHook
2020-06-16 17:46:10 +00:00
];
dontWrapQtApps = true;
2020-06-16 17:46:10 +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
"--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";
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;
maintainers = with maintainers; [ peterhoeg sfrijters ];
2020-06-16 17:46:10 +00:00
platforms = platforms.linux;
mainProgram = "maestral_qt";
2020-06-16 17:46:10 +00:00
};
}