2021-02-15 11:55:29 +00:00
|
|
|
{ lib
|
2020-06-16 17:46:10 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-07-30 13:06:26 +00:00
|
|
|
, makePythonPath
|
2020-06-16 17:46:10 +00:00
|
|
|
, pythonOlder
|
|
|
|
, python
|
2022-04-01 02:41:43 +00:00
|
|
|
, click
|
2022-10-03 03:24:14 +00:00
|
|
|
, dbus-python
|
2022-04-01 02:41:43 +00:00
|
|
|
, desktop-notifier
|
|
|
|
, dropbox
|
|
|
|
, fasteners
|
2022-12-28 16:22:57 +00:00
|
|
|
, importlib-metadata
|
2022-04-01 02:41:43 +00:00
|
|
|
, keyring
|
|
|
|
, keyrings-alt
|
|
|
|
, packaging
|
|
|
|
, pathspec
|
2023-02-19 18:30:11 +00:00
|
|
|
, pyro5
|
2022-04-01 02:41:43 +00:00
|
|
|
, requests
|
2022-12-16 20:58:09 +00:00
|
|
|
, rich
|
2022-04-01 02:41:43 +00:00
|
|
|
, setuptools
|
|
|
|
, survey
|
2022-12-16 20:58:09 +00:00
|
|
|
, typing-extensions
|
2022-04-01 02:41:43 +00:00
|
|
|
, watchdog
|
2021-08-22 20:55:38 +00:00
|
|
|
, pytestCheckHook
|
2022-04-01 02:41:43 +00:00
|
|
|
, nixosTests
|
2020-06-16 17:46:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "maestral";
|
2023-07-24 22:14:08 +00:00
|
|
|
version = "1.8.0";
|
2022-11-26 17:27:36 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-07-24 22:14:08 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-06-16 17:46:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SamSchott";
|
|
|
|
repo = "maestral";
|
2022-07-16 10:59:17 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-24 22:14:08 +00:00
|
|
|
hash = "sha256-YYbdd0GLVKE7+Oi0mpQjqhFdjdlquk/XnIg5WrtKcfI=";
|
2020-06-16 17:46:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
2021-02-15 11:55:29 +00:00
|
|
|
desktop-notifier
|
2022-10-03 03:24:14 +00:00
|
|
|
dbus-python
|
2020-06-16 17:46:10 +00:00
|
|
|
dropbox
|
|
|
|
fasteners
|
2022-12-28 16:22:57 +00:00
|
|
|
importlib-metadata
|
2020-06-16 17:46:10 +00:00
|
|
|
keyring
|
|
|
|
keyrings-alt
|
2020-10-08 22:44:29 +00:00
|
|
|
packaging
|
2020-06-16 17:46:10 +00:00
|
|
|
pathspec
|
2023-02-19 18:30:11 +00:00
|
|
|
pyro5
|
2020-06-16 17:46:10 +00:00
|
|
|
requests
|
2022-12-16 20:58:09 +00:00
|
|
|
rich
|
2020-10-08 22:44:29 +00:00
|
|
|
setuptools
|
2020-12-08 15:31:36 +00:00
|
|
|
survey
|
2022-12-16 20:58:09 +00:00
|
|
|
typing-extensions
|
2020-06-16 17:46:10 +00:00
|
|
|
watchdog
|
|
|
|
];
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
# Add the installed directories to the python path so the daemon can find them
|
2022-07-30 13:06:26 +00:00
|
|
|
"--prefix PYTHONPATH : ${makePythonPath propagatedBuildInputs}"
|
|
|
|
"--prefix PYTHONPATH : $out/lib/${python.libPrefix}/site-packages"
|
2020-06-16 17:46:10 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-22 20:55:38 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-07-30 13:06:26 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-08-22 20:55:38 +00:00
|
|
|
disabledTests = [
|
|
|
|
# We don't want to benchmark
|
|
|
|
"test_performance"
|
|
|
|
# Requires systemd
|
|
|
|
"test_autostart"
|
|
|
|
# Requires network access
|
|
|
|
"test_check_for_updates"
|
|
|
|
# Tries to look at /usr
|
|
|
|
"test_filestatus"
|
|
|
|
"test_path_exists_case_insensitive"
|
|
|
|
"test_cased_path_candidates"
|
2022-11-26 17:27:36 +00:00
|
|
|
# AssertionError
|
|
|
|
"test_locking_multiprocess"
|
2021-08-22 20:55:38 +00:00
|
|
|
];
|
|
|
|
|
2022-11-26 17:27:36 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"maestral"
|
|
|
|
];
|
2020-06-16 17:46:10 +00:00
|
|
|
|
2022-04-01 02:41:43 +00:00
|
|
|
passthru.tests.maestral = nixosTests.maestral;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-16 17:46:10 +00:00
|
|
|
description = "Open-source Dropbox client for macOS and Linux";
|
2022-11-24 22:26:42 +00:00
|
|
|
homepage = "https://maestral.app";
|
|
|
|
changelog = "https://github.com/samschott/maestral/releases/tag/v${version}";
|
2020-06-16 17:46:10 +00:00
|
|
|
license = licenses.mit;
|
2022-08-01 17:16:21 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg sfrijters ];
|
2020-06-16 17:46:10 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|