Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maestral: 0.6.4 -> 1.1.0 #88698

Merged
merged 2 commits into from
Jun 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions pkgs/applications/networking/maestral-qt/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
57 changes: 0 additions & 57 deletions pkgs/applications/networking/maestral/default.nix

This file was deleted.

57 changes: 57 additions & 0 deletions pkgs/development/python-modules/maestral/default.nix
Original file line number Diff line number Diff line change
@@ -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
}:
SFrijters marked this conversation as resolved.
Show resolved Hide resolved

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 = [
SFrijters marked this conversation as resolved.
Show resolved Hide resolved
# 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;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pyro5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildPythonPackage rec {
checkInputs = [ pytestCheckHook ];

# ignore network related tests, which fail in sandbox
disabledTests = [ "StartNSfunc" "Broadcast" "GetIP" ];
disabledTests = [ "StartNSfunc" "Broadcast" "GetIP" "TestNameServer" "TestBCSetup" ];

meta = with lib; {
description = "Distributed object middleware for Python (RPC)";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22162,9 +22162,9 @@ in

dropbox-cli = callPackage ../applications/networking/dropbox/cli.nix { };

maestral = callPackage ../applications/networking/maestral { };
maestral = with python3Packages; toPythonApplication maestral;

maestral-gui = libsForQt5.callPackage ../applications/networking/maestral { withGui = true; };
maestral-gui = libsForQt5.callPackage ../applications/networking/maestral-qt { };

insync = callPackage ../applications/networking/insync { };

Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,8 @@ in {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};

maestral = callPackage ../development/python-modules/maestral { };

manifestparser = callPackage ../development/python-modules/marionette-harness/manifestparser.nix {};
marionette_driver = callPackage ../development/python-modules/marionette-harness/marionette_driver.nix {};
mozcrash = callPackage ../development/python-modules/marionette-harness/mozcrash.nix {};
Expand Down