gnu: maxima: Update to 5.44.0.
[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>
0c34b949 3;;; Copyright © 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
85eec227 4;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
f75bbb02
LF
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages dav)
22 #:use-module (guix build-system python)
23 #:use-module (guix download)
24 #:use-module (guix licenses)
25 #:use-module (guix packages)
945b6721 26 #:use-module (gnu packages)
ac257f12 27 #:use-module (gnu packages check)
1b2f753d 28 #:use-module (gnu packages python)
44d10b1f 29 #:use-module (gnu packages python-web)
9d0c291e
MB
30 #:use-module (gnu packages python-xyz)
31 #:use-module (gnu packages sphinx))
f75bbb02
LF
32
33(define-public radicale
34 (package
35 (name "radicale")
045d77cc 36 (version "1.1.6")
f75bbb02
LF
37 (source (origin
38 (method url-fetch)
39 (uri (pypi-uri "Radicale" version))
40 (sha256
41 (base32
045d77cc 42 "0ay90nj6fmr2aq8imi0mbjl4m2rzq7a83ikj8qs9gxsylj71j1y0"))))
f75bbb02 43 (build-system python-build-system)
f76af41a 44 (arguments
425fabfc 45 '(#:tests? #f)) ; The tests are not distributed in the PyPi release.
f75bbb02
LF
46 (propagated-inputs
47 ;; TODO: Add python-pam
48 `(("python-requests" ,python-requests)))
49 (synopsis "Basic CalDAV and CardDAV server")
50 (description "Radicale is a CalDAV and CardDAV server for UNIX-like
51platforms. Calendars and address books are available for both local and remote
52access, possibly limited through authentication policies. They can be viewed
53and edited by calendar and contact clients on mobile phones or computers.
54
55Radicale intentionally does not fully comply with the CalDAV and CardDAV RFCs.
56Instead, it supports the CalDAV and CardDAV implementations of popular
57clients.")
faa8dfd1 58 (home-page "https://radicale.org/")
f75bbb02 59 (license gpl3+)))
a2f6a3d5
LF
60
61(define-public vdirsyncer
62 (package
63 (name "vdirsyncer")
85eec227
TGR
64 ;; When updating, check whether python-click-5 can be removed entirely.
65 (version "0.16.8")
a2f6a3d5
LF
66 (source (origin
67 (method url-fetch)
5f518cad 68 (uri (pypi-uri name version))
a2f6a3d5
LF
69 (sha256
70 (base32
85eec227 71 "1i8kp9j99rs8xdhrc1vx749zd9wznlzj0pb3s05xdm71a8pl5nxz"))))
a2f6a3d5
LF
72 (build-system python-build-system)
73 (arguments
0c34b949
EF
74 `(#:tests? #f ; The test suite is very flakey.
75 #:phases (modify-phases %standard-phases
9af7469c 76 (replace 'check
0c34b949 77 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
9af7469c
EF
78 (add-installed-pythonpath inputs outputs)
79 (setenv "DETERMINISTIC_TESTS" "true")
80 (setenv "DAV_SERVER" "radicale")
81 (setenv "REMOTESTORAGE_SERVER" "skip")
0c34b949
EF
82 (if tests?
83 (invoke "make" "test")
84 #t)))
dc118275
EF
85 (add-after 'unpack 'patch-version-call
86 (lambda _
87 (substitute* "docs/conf.py"
88 (("^release.*") (string-append "release = '" ,version "'\n")))
89 #t))
9af7469c
EF
90 (add-after 'install 'manpage
91 (lambda* (#:key inputs outputs #:allow-other-keys)
92 (invoke "make" "--directory=docs/" "man")
93 (install-file
94 "docs/_build/man/vdirsyncer.1"
95 (string-append
96 (assoc-ref outputs "out")
97 "/share/man/man1"))
98 #t)))))
a2f6a3d5 99 (native-inputs
36455a96 100 `(("python-setuptools-scm" ,python-setuptools-scm)
a2f6a3d5
LF
101 ("python-sphinx" ,python-sphinx)
102 ;; Required for testing
8c44dabc 103 ("python-hypothesis" ,python-hypothesis)
a2f6a3d5
LF
104 ("python-pytest" ,python-pytest)
105 ("python-pytest-localserver" ,python-pytest-localserver)
8c44dabc 106 ("python-pytest-subtesthack" ,python-pytest-subtesthack)
1ba940b5 107 ("python-urllib3" ,python-urllib3)
a2f6a3d5
LF
108 ("python-wsgi-intercept" ,python-wsgi-intercept)
109 ("radicale" ,radicale)))
110 (propagated-inputs
111 `(("python-atomicwrites" ,python-atomicwrites)
85eec227
TGR
112 ;; XXX https://github.com/mitsuhiko/click/issues/200
113 ("python-click" ,python-click-5)
a2f6a3d5
LF
114 ("python-click-log" ,python-click-log)
115 ("python-click-threading" ,python-click-threading)
a2f6a3d5
LF
116 ("python-requests-toolbelt" ,python-requests-toolbelt)))
117 (synopsis "Synchronize calendars and contacts")
118 (description "Vdirsyncer synchronizes your calendars and addressbooks
119between two storage locations. The most popular purpose is to
120synchronize a CalDAV or CardDAV server with a local folder or file. The
121local data can then be accessed via a variety of programs, none of which
122have to know or worry about syncing to a server.")
c5b63846 123 (home-page "https://github.com/pimutils/vdirsyncer")
477aa334 124 (license bsd-3)))