2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchpatch
|
|
|
|
, nixosTests
|
2022-02-10 20:34:41 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-02-10 20:34:41 +00:00
|
|
|
, radicale3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "etesync-dav";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.32.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-pOLug5MnVdKaw5wedABewomID9LU0hZPCf4kZKKU1yA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "add-missing-comma-in-setup.py.patch";
|
|
|
|
url = "https://github.com/etesync/etesync-dav/commit/040cb7b57205e70515019fb356e508a6414da11e.patch";
|
|
|
|
hash = "sha256-87IpIQ87rgpinvbRwUlWd0xeegn0zfVSiDFYNUqPerg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-06-26 10:26:21 +00:00
|
|
|
appdirs
|
2020-12-09 12:39:15 +00:00
|
|
|
etebase
|
2020-04-24 23:36:52 +00:00
|
|
|
etesync
|
|
|
|
flask
|
2022-06-16 17:23:12 +00:00
|
|
|
flask-wtf
|
2022-06-26 10:26:21 +00:00
|
|
|
msgpack
|
2023-03-04 12:14:45 +00:00
|
|
|
setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
(python.pkgs.toPythonModule (radicale3.override { python3 = python; }))
|
2022-06-26 10:26:21 +00:00
|
|
|
requests
|
2023-05-24 13:37:59 +00:00
|
|
|
types-setuptools
|
2022-06-26 10:26:21 +00:00
|
|
|
] ++ requests.optional-dependencies.socks;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) etesync-dav;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.etesync.com/";
|
|
|
|
description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "etesync-dav";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
2022-10-06 18:32:54 +00:00
|
|
|
maintainers = with maintainers; [ thyol valodim ];
|
2021-02-05 17:12:51 +00:00
|
|
|
broken = stdenv.isDarwin; # pyobjc-framework-Cocoa is missing
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|