nixpkgs/pkgs/development/python-modules/maestral/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

106 lines
2.0 KiB
Nix
Raw Normal View History

{ 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
, importlib-metadata
2022-04-01 02:41:43 +00:00
, keyring
, keyrings-alt
, packaging
, pathspec
, pyro5
2022-04-01 02:41:43 +00:00
, requests
, rich
2022-04-01 02:41:43 +00:00
, setuptools
, survey
, 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";
version = "1.8.0";
format = "pyproject";
disabled = pythonOlder "3.8";
2020-06-16 17:46:10 +00:00
src = fetchFromGitHub {
owner = "SamSchott";
repo = "maestral";
rev = "refs/tags/v${version}";
hash = "sha256-YYbdd0GLVKE7+Oi0mpQjqhFdjdlquk/XnIg5WrtKcfI=";
2020-06-16 17:46:10 +00:00
};
propagatedBuildInputs = [
click
desktop-notifier
2022-10-03 03:24:14 +00:00
dbus-python
2020-06-16 17:46:10 +00:00
dropbox
fasteners
importlib-metadata
2020-06-16 17:46:10 +00:00
keyring
keyrings-alt
packaging
2020-06-16 17:46:10 +00:00
pathspec
pyro5
2020-06-16 17:46:10 +00:00
requests
rich
setuptools
survey
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
];
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"
# AssertionError
"test_locking_multiprocess"
2021-08-22 20:55:38 +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;
meta = with lib; {
2020-06-16 17:46:10 +00:00
description = "Open-source Dropbox client for macOS and Linux";
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;
maintainers = with maintainers; [ peterhoeg sfrijters ];
2020-06-16 17:46:10 +00:00
platforms = platforms.unix;
};
}