1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
3 ;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages dav)
21 #:use-module (guix build-system python)
22 #:use-module (guix download)
23 #:use-module (guix licenses)
24 #:use-module (guix packages)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages check)
27 #:use-module (gnu packages python)
28 #:use-module (gnu packages python-web)
29 #:use-module (gnu packages python-xyz)
30 #:use-module (gnu packages sphinx))
32 (define-public radicale
38 (uri (pypi-uri "Radicale" version))
41 "0ay90nj6fmr2aq8imi0mbjl4m2rzq7a83ikj8qs9gxsylj71j1y0"))))
42 (build-system python-build-system)
44 '(#:tests? #f)) ; The tests are not distributed in the PyPi release.
46 ;; TODO: Add python-pam
47 `(("python-requests" ,python-requests)))
48 (synopsis "Basic CalDAV and CardDAV server")
49 (description "Radicale is a CalDAV and CardDAV server for UNIX-like
50 platforms. Calendars and address books are available for both local and remote
51 access, possibly limited through authentication policies. They can be viewed
52 and edited by calendar and contact clients on mobile phones or computers.
54 Radicale intentionally does not fully comply with the CalDAV and CardDAV RFCs.
55 Instead, it supports the CalDAV and CardDAV implementations of popular
57 (home-page "http://radicale.org/")
60 (define-public vdirsyncer
66 (uri (pypi-uri name version))
69 "1vqjhn2bffy2bx45a1r14crsyn2cylf5by567g44c4mhpjwwz6vc"))))
70 (build-system python-build-system)
72 `(#:phases (modify-phases %standard-phases
74 (lambda* (#:key inputs outputs #:allow-other-keys)
75 (add-installed-pythonpath inputs outputs)
76 (setenv "DETERMINISTIC_TESTS" "true")
77 (setenv "DAV_SERVER" "radicale")
78 (setenv "REMOTESTORAGE_SERVER" "skip")
79 (invoke "make" "test")))
80 (add-after 'install 'manpage
81 (lambda* (#:key inputs outputs #:allow-other-keys)
82 (invoke "make" "--directory=docs/" "man")
84 "docs/_build/man/vdirsyncer.1"
86 (assoc-ref outputs "out")
90 `(("python-setuptools-scm" ,python-setuptools-scm)
91 ("python-sphinx" ,python-sphinx)
92 ;; Required for testing
93 ("python-hypothesis" ,python-hypothesis)
94 ("python-pytest" ,python-pytest)
95 ("python-pytest-localserver" ,python-pytest-localserver)
96 ("python-pytest-subtesthack" ,python-pytest-subtesthack)
97 ("python-urllib3" ,python-urllib3)
98 ("python-wsgi-intercept" ,python-wsgi-intercept)
99 ("radicale" ,radicale)))
101 `(("python-atomicwrites" ,python-atomicwrites)
102 ("python-click" ,python-click)
103 ("python-click-log" ,python-click-log)
104 ("python-click-threading" ,python-click-threading)
105 ("python-requests-toolbelt" ,python-requests-toolbelt)))
106 (synopsis "Synchronize calendars and contacts")
107 (description "Vdirsyncer synchronizes your calendars and addressbooks
108 between two storage locations. The most popular purpose is to
109 synchronize a CalDAV or CardDAV server with a local folder or file. The
110 local data can then be accessed via a variety of programs, none of which
111 have to know or worry about syncing to a server.")
112 (home-page "https://github.com/pimutils/vdirsyncer")