summaryrefslogtreecommitdiff
path: root/overlays/etesync-dav.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-11 16:15:19 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-11 16:15:19 +0100
commit8fda0125d8641018db73b2ccafe8b8302937660f (patch)
tree3f5a98d2baf692cc7098dce1abedb50359c3b68e /overlays/etesync-dav.nix
parent7e97353075b4acee96488d022e456f80f4f903ed (diff)
downloadnixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.gz
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.bz2
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.xz
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.zip
...
Diffstat (limited to 'overlays/etesync-dav.nix')
-rw-r--r--overlays/etesync-dav.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/overlays/etesync-dav.nix b/overlays/etesync-dav.nix
new file mode 100644
index 00000000..49c77352
--- /dev/null
+++ b/overlays/etesync-dav.nix
@@ -0,0 +1,61 @@
1{ final, prev, sources, ... }: {
2 etesync-dav = let
3 python = final.python3.override {
4 packageOverrides = self: super: {
5 # flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec {
6 # patches = [];
7 # version = "0.15.1";
8 # src = old.src.override {
9 # inherit version;
10 # sha256 = "ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc";
11 # };
12 # disabledTests = [
13 # "test_outside_request"
14 # ];
15 # });
16 # wtforms = super.wtforms.overridePythonAttrs (old: rec {
17 # version = "2.3.3";
18 # src = old.src.override {
19 # inherit version;
20 # sha256 = "81195de0ac94fbc8368abbaf9197b88c4f3ffd6c2719b5bf5fc9da744f3d829c";
21 # };
22 # checkPhase = ''
23 # ${self.python.interpreter} tests/runtests.py
24 # '';
25 # });
26 etebase = super.wtforms.overridePythonAttrs (old: rec {
27 inherit (sources.etebase-py) version src;
28 });
29 };
30 };
31 in python.pkgs.buildPythonApplication rec {
32 pname = "etesync-dav";
33 version = "0.32.1";
34
35 src = python.pkgs.fetchPypi {
36 inherit pname version;
37 sha256 = "a4e2ee83932755d29ac39c1e74005ec289880fd2d4d2164f09fe2464a294d720";
38 };
39
40 propagatedBuildInputs = with python.pkgs; [
41 appdirs
42 etebase
43 etesync
44 flask
45 flask-wtf
46 msgpack
47 pysocks
48 (python.pkgs.toPythonModule (final.radicale3.override { python3 = python; }))
49 requests
50 ] ++ requests.optional-dependencies.socks;
51
52 doCheck = false;
53
54 meta = with final.lib; {
55 homepage = "https://www.etesync.com/";
56 description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks";
57 license = licenses.gpl3;
58 broken = final.stdenv.isDarwin; # pyobjc-framework-Cocoa is missing
59 };
60 };
61}