summaryrefslogtreecommitdiff
path: root/overlays/etesync-dav/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/etesync-dav/default.nix')
-rw-r--r--overlays/etesync-dav/default.nix64
1 files changed, 12 insertions, 52 deletions
diff --git a/overlays/etesync-dav/default.nix b/overlays/etesync-dav/default.nix
index 378fa753..963c34e2 100644
--- a/overlays/etesync-dav/default.nix
+++ b/overlays/etesync-dav/default.nix
@@ -1,55 +1,15 @@
1{ final, prev, ... }: { 1{ final, prev, ... }: {
2 etesync-dav = 2 etesync-dav = prev.etesync-dav.overrideAttrs (oldAttrs: rec {
3 let 3 version = "0.32.1";
4 inherit (final) lib stdenv python39 radicale3 callPackage; 4 src = prev.fetchFromGitHub {
5 5 owner = "etesync";
6 python = python39.override { 6 repo = "etesync-dav";
7 packageOverrides = self: super: { 7 rev = "108c23abf0f036522af38411bced50c4f6c0a731";
8 flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec { 8 hash = "sha256-w0EuU+E9B2fp5/WfI/KJ8i1AuV4JHWNdZ8o6aopqrfs=";
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 }; 9 };
10 patches = (oldAttrs.patches or []) ++ [ ./000-fix-setup-py.patch ];
11 propagatedBuildInputs = (oldAttrs.propagatedBuildInputs or []) ++ [
12 prev.python3.pkgs.types-setuptools
13 ];
14 });
55} 15}