1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

Merge pull request #66420 from peterhoeg/p/maestral

maestral: init at 0.2.6
This commit is contained in:
Peter Hoeg 2019-08-14 14:29:36 +08:00 committed by GitHub
commit d7fc23a0a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib, python3Packages, fetchFromGitHub
, withGui ? false, wrapQtAppsHook ? null }:
python3Packages.buildPythonApplication rec {
pname = "maestral${lib.optionalString withGui "-gui"}";
version = "0.2.6";
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral-dropbox";
rev = "v${version}";
sha256 = "1nfjm58f6hnqbx9xnz2h929s2175ka1yf5jjlk4i60v0wppnrrdf";
};
disabled = python3Packages.pythonOlder "3.6";
propagatedBuildInputs = (with python3Packages; [
blinker click dropbox keyring keyrings-alt requests u-msgpack-python watchdog
] ++ 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;
};
}

View file

@ -20487,6 +20487,10 @@ in
dropbox-cli = callPackage ../applications/networking/dropbox/cli.nix { };
maestral = callPackage ../applications/networking/maestral { };
maestral-gui = libsForQt5.callPackage ../applications/networking/maestral { withGui = true; };
insync = callPackage ../applications/networking/insync { };
libstrangle = callPackage ../tools/X11/libstrangle {