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

58 lines
1.2 KiB
Nix
Raw Normal View History

2019-12-02 01:01:02 +00:00
{ stdenv
, lib
, fetchFromGitHub
, python3
, withGui ? false
, wrapQtAppsHook ? null
}:
python3.pkgs.buildPythonApplication rec {
2019-08-06 05:46:14 +01:00
pname = "maestral${lib.optionalString withGui "-gui"}";
2020-03-31 15:43:16 +01:00
version = "0.6.3";
2019-12-02 01:01:02 +00:00
disabled = python3.pkgs.pythonOlder "3.6";
2019-08-06 05:46:14 +01:00
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-dropbox";
rev = "v${version}";
2020-03-31 15:43:16 +01:00
sha256 = "0h1vbx00mps2msdhsab1yz64c8sprwrg38nkqyj86mkb6jkirq92";
2019-08-06 05:46:14 +01:00
};
2019-12-02 01:01:02 +00:00
propagatedBuildInputs = with python3.pkgs; [
blinker
bugsnag
click
dropbox
keyring
keyrings-alt
lockfile
2020-03-31 15:43:16 +01:00
pathspec
2019-12-02 01:01:02 +00:00
Pyro5
requests
u-msgpack-python
watchdog
2019-08-16 02:52:17 +01:00
] ++ lib.optionals stdenv.isLinux [
2019-12-02 01:01:02 +00:00
sdnotify
systemd
] ++ lib.optional withGui pyqt5;
2019-08-06 05:46:14 +01:00
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;
};
}