summaryrefslogtreecommitdiff
path: root/overlays/etesync-dav.nix
blob: cec216e236946743ab1b448138359303d3135c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ final, prev, ... }: {
  etesync-dav = prev.python3Packages.buildPythonApplication rec {
    pname = "etesync-dav";
    version = "0.33.4";

    src = prev.fetchFromGitHub {
      owner = "etesync";
      repo = "etesync-dav";
      rev = "v${version}";
      hash = "sha256-g+rK762tSWPDaBsaTwpTzfK/lqVs+Z/Qrpq2HCpipQE=";
    };

    dependencies = with prev.python3Packages; [
      appdirs
      etebase
      etesync
      flask
      flask-wtf
      msgpack
      setuptools
      (toPythonModule (buildPythonApplication rec {
        pname = "radicale";
        version = "3.2.3";
        pyproject = true;

        src = prev.fetchFromGitHub {
          owner = "Kozea";
          repo = "Radicale";
          rev = "refs/tags/v${version}";
          hash = "sha256-1IlnXVetQQuKBt6+QVKNeMM6qBQAiUhqc+4x3xOnSdE=";
        };

        build-system = [
          setuptools
        ];

        dependencies =
          [
            defusedxml
            passlib
            vobject
            pika
            python-dateutil
            pytz # https://github.com/Kozea/Radicale/issues/816
          ]
          ++ passlib.optional-dependencies.bcrypt;

        doCheck = false;
      }))
      requests
      types-setuptools
      requests.optional-dependencies.socks
    ];

    doCheck = false;
  };
}