diff options
Diffstat (limited to 'overlays/etesync-dav/default.nix')
-rw-r--r-- | overlays/etesync-dav/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/overlays/etesync-dav/default.nix b/overlays/etesync-dav/default.nix new file mode 100644 index 00000000..378fa753 --- /dev/null +++ b/overlays/etesync-dav/default.nix | |||
@@ -0,0 +1,55 @@ | |||
1 | { final, prev, ... }: { | ||
2 | etesync-dav = | ||
3 | let | ||
4 | inherit (final) lib stdenv python39 radicale3 callPackage; | ||
5 | |||
6 | python = python39.override { | ||
7 | packageOverrides = self: super: { | ||
8 | flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec { | ||
9 | version = "0.15.1"; | ||
10 | src = old.src.override { | ||
11 | inherit version; | ||
12 | sha256 = "ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc"; | ||
13 | }; | ||
14 | doCheck = false; | ||
15 | disabledTests = [ | ||
16 | "test_outside_request" | ||
17 | ]; | ||
18 | patches = [ ]; | ||
19 | }); | ||
20 | etebase = python.pkgs.callPackage ./etebase.nix { python39 = python; openssl = final.openssl_1_1; }; | ||
21 | }; | ||
22 | }; | ||
23 | in python.pkgs.buildPythonApplication rec { | ||
24 | pname = "etesync-dav"; | ||
25 | version = "0.32.1"; | ||
26 | |||
27 | src = python.pkgs.fetchPypi { | ||
28 | inherit pname version; | ||
29 | sha256 = "a4e2ee83932755d29ac39c1e74005ec289880fd2d4d2164f09fe2464a294d720"; | ||
30 | }; | ||
31 | |||
32 | propagatedBuildInputs = with python.pkgs; [ | ||
33 | appdirs | ||
34 | etebase | ||
35 | etesync | ||
36 | flask | ||
37 | flask-wtf | ||
38 | msgpack | ||
39 | pysocks | ||
40 | setuptools | ||
41 | (python.pkgs.toPythonModule (radicale3.override { python3 = python; })) | ||
42 | requests | ||
43 | ] ++ requests.optional-dependencies.socks; | ||
44 | |||
45 | doCheck = false; | ||
46 | |||
47 | meta = with lib; { | ||
48 | homepage = "https://www.etesync.com/"; | ||
49 | description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks"; | ||
50 | license = licenses.gpl3; | ||
51 | maintainers = with maintainers; [ thyol valodim ]; | ||
52 | broken = stdenv.isDarwin; # pyobjc-framework-Cocoa is missing | ||
53 | }; | ||
54 | }; | ||
55 | } | ||