gnu: Add wlgreet.
[jackhill/guix/guix.git] / gnu / packages / dav.scm
CommitLineData
f75bbb02 1;;; GNU Guix --- Functional package management for GNU
945b6721 2;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
4ddf9038 3;;; Copyright © 2018, 2019, 2022 Efraim Flashner <efraim@flashner.co.il>
85eec227 4;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
f6ac084d 5;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
b2022a09 6;;; Copyright © 2021 Tanguy Le Carrour <tanguy@bioneland.org>
3471b8fa 7;;; Copyright © 2022 Jonathan Brielmaier <jonathan.brielmaier@web.de>
f75bbb02
LF
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages dav)
25 #:use-module (guix build-system python)
26 #:use-module (guix download)
27 #:use-module (guix licenses)
28 #:use-module (guix packages)
828658f8 29 #:use-module (guix git-download)
945b6721 30 #:use-module (gnu packages)
ac257f12 31 #:use-module (gnu packages check)
1b2f753d 32 #:use-module (gnu packages python)
ed210c1b 33 #:use-module (gnu packages python-build)
828658f8
VM
34 #:use-module (gnu packages python-check)
35 #:use-module (gnu packages python-crypto)
44d10b1f 36 #:use-module (gnu packages python-web)
9d0c291e 37 #:use-module (gnu packages python-xyz)
f6ac084d 38 #:use-module (gnu packages sphinx)
828658f8 39 #:use-module (gnu packages time)
f6ac084d 40 #:use-module (gnu packages xml))
f75bbb02
LF
41
42(define-public radicale
43 (package
44 (name "radicale")
4ddf9038 45 (version "3.1.7")
828658f8
VM
46 (source
47 (origin
48 ;; There are no tests in the PyPI tarball.
49 (method git-fetch)
50 (uri (git-reference
51 (url "https://github.com/Kozea/Radicale")
3471b8fa 52 (commit (string-append "v" version))))
828658f8
VM
53 (file-name (git-file-name name version))
54 (sha256
4ddf9038 55 (base32 "1mv1w9qazbis9ir5shr1ybsfn4cxd3rmxa3ns6kbk23yramlzwhg"))))
f75bbb02 56 (build-system python-build-system)
3471b8fa
JB
57 (arguments
58 (list
59 ;; TODO: enable again when https://github.com/Kozea/Radicale/issues/1184
60 ;; is fixed
61 #:tests? #f))
828658f8 62 (native-inputs
8394619b
LC
63 (list python-pytest
64 python-pytest-cov
65 python-pytest-flake8
66 python-pytest-isort
67 python-pytest-runner
68 python-waitress))
f75bbb02 69 (propagated-inputs
8394619b
LC
70 (list python-dateutil python-defusedxml python-passlib
71 python-vobject))
f75bbb02
LF
72 (synopsis "Basic CalDAV and CardDAV server")
73 (description "Radicale is a CalDAV and CardDAV server for UNIX-like
74platforms. Calendars and address books are available for both local and remote
75access, possibly limited through authentication policies. They can be viewed
76and edited by calendar and contact clients on mobile phones or computers.
77
78Radicale intentionally does not fully comply with the CalDAV and CardDAV RFCs.
79Instead, it supports the CalDAV and CardDAV implementations of popular
80clients.")
faa8dfd1 81 (home-page "https://radicale.org/")
f75bbb02 82 (license gpl3+)))
a2f6a3d5 83
f6ac084d
VM
84(define-public xandikos
85 (package
86 (name "xandikos")
87 (version "0.2.3")
88 (source
89 (origin
90 (method url-fetch)
91 (uri (pypi-uri "xandikos" version))
92 (sha256
93 (base32 "13ikmcja9p42azb5ccqj2bw98zybna6zlflj10hqy0kvbib70l94"))))
94 (build-system python-build-system)
95 (propagated-inputs
8394619b
LC
96 (list python-aiohttp
97 python-defusedxml
98 python-dulwich
99 python-icalendar
100 python-jinja2
101 python-multidict))
f6ac084d
VM
102 (home-page "https://www.xandikos.org/")
103 (synopsis "Lightweight CalDAV/CardDAV server")
104 (description
105 "Xandikos is a lightweight yet complete CardDAV/CalDAV server that backs
106onto a Git repository.
107
108Features:
109
110@itemize
111@item Easy to set up
112@item Share calendars (events, todo items, journal entries) via CalDAV and
113contacts (vCard) via CardDAV
114@item Automatically keep history and back up changes in Git
115@item Supports synchronization extensions for CalDAV/CardDAV for quick and
116efficient syncing
117@item Automatically keep history and back up
118@item Works with all tested CalDAV and CardDAV clients
119@end itemize")
120 (license gpl3+)))
121
a2f6a3d5
LF
122(define-public vdirsyncer
123 (package
124 (name "vdirsyncer")
85eec227 125 ;; When updating, check whether python-click-5 can be removed entirely.
b2022a09 126 (version "0.18.0")
a2f6a3d5
LF
127 (source (origin
128 (method url-fetch)
5f518cad 129 (uri (pypi-uri name version))
a2f6a3d5
LF
130 (sha256
131 (base32
b2022a09 132 "00f2bw1a2jbbd1sbci0swnd67kylr341aa9rpbxkajbp3zakxg17"))))
a2f6a3d5
LF
133 (build-system python-build-system)
134 (arguments
0c34b949
EF
135 `(#:tests? #f ; The test suite is very flakey.
136 #:phases (modify-phases %standard-phases
9af7469c 137 (replace 'check
0c34b949 138 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
9af7469c
EF
139 (add-installed-pythonpath inputs outputs)
140 (setenv "DETERMINISTIC_TESTS" "true")
141 (setenv "DAV_SERVER" "radicale")
142 (setenv "REMOTESTORAGE_SERVER" "skip")
0c34b949
EF
143 (if tests?
144 (invoke "make" "test")
145 #t)))
dc118275
EF
146 (add-after 'unpack 'patch-version-call
147 (lambda _
148 (substitute* "docs/conf.py"
149 (("^release.*") (string-append "release = '" ,version "'\n")))
150 #t))
9af7469c
EF
151 (add-after 'install 'manpage
152 (lambda* (#:key inputs outputs #:allow-other-keys)
153 (invoke "make" "--directory=docs/" "man")
154 (install-file
155 "docs/_build/man/vdirsyncer.1"
156 (string-append
157 (assoc-ref outputs "out")
158 "/share/man/man1"))
159 #t)))))
a2f6a3d5 160 (native-inputs
8394619b
LC
161 (list python-setuptools-scm
162 python-sphinx
163 ;; Required for testing
164 python-hypothesis
165 python-pytest
166 python-pytest-localserver
167 python-pytest-subtesthack
168 python-urllib3
169 python-wsgi-intercept
170 radicale))
8ed5d950 171 (inputs
8394619b
LC
172 (list ;; XXX https://github.com/mitsuhiko/click/issues/200
173 python-click-5))
a2f6a3d5 174 (propagated-inputs
8394619b
LC
175 (list python-atomicwrites python-click-log python-click-threading
176 python-requests-toolbelt))
a2f6a3d5
LF
177 (synopsis "Synchronize calendars and contacts")
178 (description "Vdirsyncer synchronizes your calendars and addressbooks
179between two storage locations. The most popular purpose is to
180synchronize a CalDAV or CardDAV server with a local folder or file. The
181local data can then be accessed via a variety of programs, none of which
182have to know or worry about syncing to a server.")
c5b63846 183 (home-page "https://github.com/pimutils/vdirsyncer")
477aa334 184 (license bsd-3)))