aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/etesync-dav/default.nix
blob: 5e3a85c3b93fc08f3568629dd8d45a0676b844d2 (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
{ lib, python3Packages, radicale3 }:

python3Packages.buildPythonApplication rec {
  pname = "etesync-dav";
  version = "0.20.0";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1q8h89hqi4kxphn1g5nbcia0haz5k57is9rycwaabm55mj9s9fah";
  };

  postPatch = ''
    substituteInPlace setup.py --replace "Radicale==" "Radicale>="
  '';

  propagatedBuildInputs = with python3Packages; [
    etesync
    flask
    flask_wtf
    radicale3
  ];

  checkInputs = with python3Packages; [
    pytest
  ];

  checkPhase = ''
    pytest
  '';

  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;
    maintainers = with maintainers; [ valodim ];
  };
}