Skip to content

Commit

Permalink
maestral: enable darwin support
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Apr 30, 2024
1 parent 6ac30e5 commit 8c1665b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion pkgs/development/python-modules/maestral/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, makePythonPath
Expand All @@ -17,6 +18,7 @@
, pyro5
, requests
, rich
, rubicon-objc
, setuptools
, survey
, typing-extensions
Expand Down Expand Up @@ -59,6 +61,8 @@ buildPythonPackage rec {
typing-extensions
watchdog
xattr
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
rubicon-objc
];

makeWrapperArgs = [
Expand All @@ -71,6 +75,9 @@ buildPythonPackage rec {
pytestCheckHook
];

# ModuleNotFoundError: No module named '_watchdog_fsevents'
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64);

preCheck = ''
export HOME=$(mktemp -d)
'';
Expand All @@ -90,6 +97,19 @@ buildPythonPackage rec {
"test_locking_multiprocess"
# OSError: [Errno 95] Operation not supported
"test_move_preserves_xattrs"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# maetral daemon does not start but worked in real environment
"test_catching_non_ignored_events"
"test_connection"
"test_event_handler"
"test_fs_ignore_tree_creation"
"test_lifecycle"
"test_notify_level"
"test_notify_snooze"
"test_receiving_events"
"test_remote_exceptions"
"test_start_already_running"
"test_stop"
];

pythonImportsCheck = [
Expand All @@ -105,6 +125,5 @@ buildPythonPackage rec {
changelog = "https://github.com/samschott/maestral/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg sfrijters ];
platforms = platforms.unix;
};
}

0 comments on commit 8c1665b

Please sign in to comment.