2022-01-30 23:29:44 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-04-29 21:49:00 +02:00
|
|
|
, fetchpatch
|
2023-04-29 21:51:27 +02:00
|
|
|
, nixosTests
|
2022-01-30 23:29:44 +01:00
|
|
|
, python3
|
2023-05-25 16:07:31 +02:00
|
|
|
, fetchPypi
|
2022-01-30 23:29:44 +01:00
|
|
|
, radicale3
|
|
|
|
}:
|
2020-01-22 13:18:13 +01:00
|
|
|
|
2023-11-04 18:51:58 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-01-22 13:18:13 +01:00
|
|
|
pname = "etesync-dav";
|
2022-01-30 23:29:44 +01:00
|
|
|
version = "0.32.1";
|
2020-01-22 13:18:13 +01:00
|
|
|
|
2023-05-25 16:07:31 +02:00
|
|
|
src = fetchPypi {
|
2020-01-22 13:18:13 +01:00
|
|
|
inherit pname version;
|
2023-03-10 00:34:17 +01:00
|
|
|
hash = "sha256-pOLug5MnVdKaw5wedABewomID9LU0hZPCf4kZKKU1yA=";
|
2020-01-22 13:18:13 +01:00
|
|
|
};
|
|
|
|
|
2023-04-29 21:49:00 +02: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-04 18:51:58 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-06-22 14:39:04 +02:00
|
|
|
appdirs
|
2020-11-30 22:10:07 +01:00
|
|
|
etebase
|
2020-01-22 13:18:13 +01:00
|
|
|
etesync
|
|
|
|
flask
|
2022-05-24 06:09:51 +02:00
|
|
|
flask-wtf
|
2022-06-22 14:39:04 +02:00
|
|
|
msgpack
|
2023-02-18 18:35:01 +01:00
|
|
|
setuptools
|
2022-01-30 23:29:44 +01:00
|
|
|
(python.pkgs.toPythonModule (radicale3.override { python3 = python; }))
|
2022-06-22 14:39:04 +02:00
|
|
|
requests
|
2023-04-29 21:49:00 +02:00
|
|
|
types-setuptools
|
2022-06-22 14:39:04 +02:00
|
|
|
] ++ requests.optional-dependencies.socks;
|
2020-01-22 13:18:13 +01:00
|
|
|
|
2020-11-30 22:10:07 +01:00
|
|
|
doCheck = false;
|
2020-01-22 13:18:13 +01:00
|
|
|
|
2023-04-29 21:51:27 +02:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) etesync-dav;
|
|
|
|
};
|
|
|
|
|
2020-01-22 13:18:13 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.etesync.com/";
|
|
|
|
description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks";
|
|
|
|
license = licenses.gpl3;
|
2022-10-02 15:55:49 +02:00
|
|
|
maintainers = with maintainers; [ thyol valodim ];
|
2021-01-16 14:33:10 +01:00
|
|
|
broken = stdenv.isDarwin; # pyobjc-framework-Cocoa is missing
|
2020-01-22 13:18:13 +01:00
|
|
|
};
|
|
|
|
}
|