8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, withGui ? false
|
|
, wrapQtAppsHook ? null
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "maestral${lib.optionalString withGui "-gui"}";
|
|
version = "0.6.3";
|
|
|
|
disabled = python3.pkgs.pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SamSchott";
|
|
repo = "maestral-dropbox";
|
|
rev = "v${version}";
|
|
sha256 = "0h1vbx00mps2msdhsab1yz64c8sprwrg38nkqyj86mkb6jkirq92";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
blinker
|
|
bugsnag
|
|
click
|
|
dropbox
|
|
keyring
|
|
keyrings-alt
|
|
lockfile
|
|
pathspec
|
|
Pyro5
|
|
requests
|
|
u-msgpack-python
|
|
watchdog
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
sdnotify
|
|
systemd
|
|
] ++ lib.optional withGui pyqt5;
|
|
|
|
nativeBuildInputs = lib.optional withGui wrapQtAppsHook;
|
|
|
|
postInstall = lib.optionalString withGui ''
|
|
makeQtWrapper $out/bin/maestral $out/bin/maestral-gui \
|
|
--add-flags gui
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Open-source Dropbox client for macOS and Linux";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.unix;
|
|
inherit (src.meta) homepage;
|
|
};
|
|
}
|