parent
232fb824f8
commit
f1235e43c2
@ -0,0 +1,49 @@ |
||||
{ stdenv |
||||
, lib |
||||
, fetchFromGitHub |
||||
, python3 |
||||
, wrapQtAppsHook |
||||
}: |
||||
|
||||
python3.pkgs.buildPythonApplication rec { |
||||
pname = "maestral-qt"; |
||||
version = "1.1.0"; |
||||
disabled = python3.pkgs.pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "SamSchott"; |
||||
repo = "maestral-qt"; |
||||
rev = "v${version}"; |
||||
sha256 = "0clzzwwbrynfbvawhaaa4mp2qi8smng31mmz0is166z6g67bwdl6"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ |
||||
bugsnag |
||||
click |
||||
markdown2 |
||||
maestral |
||||
pyqt5 |
||||
]; |
||||
|
||||
nativeBuildInputs = [ wrapQtAppsHook ]; |
||||
|
||||
makeWrapperArgs = [ |
||||
# Firstly, add all necessary QT variables |
||||
"\${qtWrapperArgs[@]}" |
||||
|
||||
# Add the installed directories to the python path so the daemon can find them |
||||
"--prefix" "PYTHONPATH" ":" "${stdenv.lib.concatStringsSep ":" (map (p: p + "/lib/${python3.libPrefix}/site-packages") (python3.pkgs.requiredPythonModules python3.pkgs.maestral.propagatedBuildInputs))}" |
||||
"--prefix" "PYTHONPATH" ":" "${python3.pkgs.maestral}/lib/${python3.libPrefix}/site-packages" |
||||
]; |
||||
|
||||
# no tests |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
description = "GUI front-end for maestral (an open-source Dropbox client) for Linux"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ peterhoeg ]; |
||||
platforms = platforms.linux; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
@ -1,57 +0,0 @@ |
||||
{ stdenv |
||||
, lib |
||||
, fetchFromGitHub |
||||
, python3 |
||||
, withGui ? false |
||||
, wrapQtAppsHook ? null |
||||
}: |
||||
|
||||
python3.pkgs.buildPythonApplication rec { |
||||
pname = "maestral${lib.optionalString withGui "-gui"}"; |
||||
version = "0.6.4"; |
||||
|
||||
disabled = python3.pkgs.pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "SamSchott"; |
||||
repo = "maestral-dropbox"; |
||||
rev = "v${version}"; |
||||
sha256 = "06psbjd205qj6vx7k7ywhclz1bs5zp43xnf275hf0k80h3b064sn"; |
||||
}; |
||||
|
||||
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; |
||||
}; |
||||
} |
@ -0,0 +1,57 @@ |
||||
{ stdenv |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pythonOlder |
||||
, python |
||||
, blinker, bugsnag, click, dropbox, fasteners, keyring, keyrings-alt, pathspec, Pyro5, requests, u-msgpack-python, watchdog |
||||
, sdnotify |
||||
, systemd |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "maestral"; |
||||
version = "1.1.0"; |
||||
disabled = pythonOlder "3.6"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "SamSchott"; |
||||
repo = "maestral"; |
||||
rev = "v${version}"; |
||||
sha256 = "0d1pxbg69ll07w4bbpzs7zz1yn82qyrym95b0mqmhrrg2ysxjngg"; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
blinker |
||||
bugsnag |
||||
click |
||||
dropbox |
||||
fasteners |
||||
keyring |
||||
keyrings-alt |
||||
pathspec |
||||
Pyro5 |
||||
requests |
||||
u-msgpack-python |
||||
watchdog |
||||
] ++ stdenv.lib.optionals stdenv.isLinux [ |
||||
sdnotify |
||||
systemd |
||||
]; |
||||
|
||||
makeWrapperArgs = [ |
||||
# Add the installed directories to the python path so the daemon can find them |
||||
"--prefix" "PYTHONPATH" ":" "${stdenv.lib.concatStringsSep ":" (map (p: p + "/lib/${python.libPrefix}/site-packages") (python.pkgs.requiredPythonModules propagatedBuildInputs))}" |
||||
"--prefix" "PYTHONPATH" ":" "$out/lib/${python.libPrefix}/site-packages" |
||||
]; |
||||
|
||||
# no tests |
||||
doCheck = false; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "Open-source Dropbox client for macOS and Linux"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ peterhoeg ]; |
||||
platforms = platforms.unix; |
||||
inherit (src.meta) homepage; |
||||
}; |
||||
} |
Loading…
Reference in new issue