3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/maestral/default.nix

57 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"}";
2019-12-02 01:01:02 +00:00
version = "0.6.1";
disabled = python3.pkgs.pythonOlder "3.6";
2019-08-06 05:46:14 +01:00
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-dropbox";
rev = "v${version}";
2019-12-02 01:01:02 +00:00
sha256 = "06i3c7i85x879np158156mba7kxz2cwh75390sc9gwwngc95d9h9";
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
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;
};
}