2020-06-16 18:46:10 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, python
|
2020-12-08 15:31:36 +00:00
|
|
|
, alembic, bugsnag, click, dropbox, fasteners, keyring, keyrings-alt, packaging, pathspec, Pyro5, requests, setuptools, sdnotify, sqlalchemy, survey, watchdog
|
|
|
|
, importlib-metadata
|
|
|
|
, importlib-resources
|
2020-10-08 23:44:29 +01:00
|
|
|
, dbus-next
|
2020-06-16 18:46:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "maestral";
|
2020-12-08 15:56:57 +00:00
|
|
|
version = "1.3.1";
|
2020-06-16 18:46:10 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SamSchott";
|
|
|
|
repo = "maestral";
|
|
|
|
rev = "v${version}";
|
2020-12-08 15:56:57 +00:00
|
|
|
sha256 = "sha256-SspyTdmAbbmWN3AqVp9bj/QfAKLVgU2bLiiHjZO0aCM=";
|
2020-06-16 18:46:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-10-08 23:44:29 +01:00
|
|
|
alembic
|
2020-06-16 18:46:10 +01:00
|
|
|
bugsnag
|
|
|
|
click
|
|
|
|
dropbox
|
|
|
|
fasteners
|
|
|
|
keyring
|
|
|
|
keyrings-alt
|
2020-10-08 23:44:29 +01:00
|
|
|
packaging
|
2020-06-16 18:46:10 +01:00
|
|
|
pathspec
|
|
|
|
Pyro5
|
|
|
|
requests
|
2020-10-08 23:44:29 +01:00
|
|
|
setuptools
|
|
|
|
sdnotify
|
2020-09-16 17:41:49 +01:00
|
|
|
sqlalchemy
|
2020-12-08 15:31:36 +00:00
|
|
|
survey
|
2020-06-16 18:46:10 +01:00
|
|
|
watchdog
|
2020-12-08 15:31:36 +00:00
|
|
|
] ++ stdenv.lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
] ++ stdenv.lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
2020-06-16 18:46:10 +01:00
|
|
|
] ++ stdenv.lib.optionals stdenv.isLinux [
|
2020-10-08 23:44:29 +01:00
|
|
|
dbus-next
|
2020-06-16 18:46:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|