gnu: emacs-svg-icon: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / matrix.scm
CommitLineData
07529084
AW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
2d84d653 3;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
4498894b 4;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
536fa1bd 5;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
07529084
AW
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages matrix)
23 #:use-module ((guix licenses) #:prefix license:)
70c128dc
AW
24 #:use-module (gnu packages check)
25 #:use-module (gnu packages databases)
1518b4bc 26 #:use-module (gnu packages monitoring)
07529084 27 #:use-module (gnu packages python-crypto)
70c128dc 28 #:use-module (gnu packages python-web)
07529084 29 #:use-module (gnu packages python-xyz)
70c128dc 30 #:use-module (gnu packages xml)
07529084
AW
31 #:use-module (guix build-system python)
32 #:use-module (guix download)
33 #:use-module (guix packages))
34
536fa1bd
GL
35(define-public python-matrix-client
36 (package
37 (name "python-matrix-client")
38 (version "0.3.2")
39 (source
40 (origin
41 (method url-fetch)
42 (uri (pypi-uri "matrix-client" version))
43 (sha256
44 (base32
45 "1mgjd0ymf9mvqjkvgx3xjhxap7rzdmpa21wfy0cxbw2xcswcrqyw"))))
46 (build-system python-build-system)
47 (propagated-inputs
48 `(("python-requests" ,python-requests)))
49 (native-inputs
50 `(("python-pytest" ,python-pytest)
51 ("python-pytest-runner" ,python-pytest-runner)
52 ("python-responses" ,python-responses)))
53 (home-page
54 "https://github.com/matrix-org/matrix-python-sdk")
55 (synopsis "Client-Server SDK for Matrix")
56 (description "This package provides client-server SDK for Matrix.")
57 (license license:asl2.0)))
58
07529084
AW
59(define-public python-matrix-synapse-ldap3
60 (package
61 (name "python-matrix-synapse-ldap3")
62 (version "0.1.4")
63 (source
64 (origin
65 (method url-fetch)
66 (uri (pypi-uri "matrix-synapse-ldap3" version))
67 (sha256
68 (base32
69 "01bms89sl16nyh9f141idsz4mnhxvjrc3gj721wxh1fhikps0djx"))))
70 (build-system python-build-system)
71 (arguments
72 ;; tests require synapse, creating a circular dependency.
73 '(#:tests? #f))
74 (propagated-inputs
75 `(("python-twisted" ,python-twisted)
76 ("python-ldap3" ,python-ldap3)
77 ("python-service-identity" ,python-service-identity)))
78 (home-page "https://github.com/matrix-org/matrix-synapse-ldap3")
79 (synopsis "LDAP3 auth provider for Synapse")
80 (description
81 "This package allows Synapse to use LDAP as a password provider.
82This lets users log in to Synapse with their username and password from
83an LDAP server.")
84 (license license:asl2.0)))
70c128dc
AW
85
86(define-public synapse
87 (package
88 (name "synapse")
0098fcec 89 (version "1.29.0")
70c128dc
AW
90 (source (origin
91 (method url-fetch)
92 (uri (pypi-uri "matrix-synapse" version))
93 (sha256
94 (base32
0098fcec 95 "0if2yhpz8psg0661401mvxznldbfhk2j9rhbs25jdaqm9jsv6907"))))
70c128dc 96 (build-system python-build-system)
2d84d653 97 ;; TODO Run tests with ‘PYTHONPATH=. trial3 tests’.
70c128dc
AW
98 (propagated-inputs
99 `(("python-simplejson" ,python-simplejson) ; not attested but required
100 ;; requirements (synapse/python_dependencies.py)
101 ("python-jsonschema" ,python-jsonschema)
102 ("python-frozendict" ,python-frozendict)
103 ("python-unpaddedbase64" ,python-unpaddedbase64)
104 ("python-canonicaljson" ,python-canonicaljson)
105 ("python-signedjson" ,python-signedjson)
106 ("python-pynacl" ,python-pynacl)
107 ("python-idna" ,python-idna)
108 ("python-service-identity" ,python-service-identity)
109 ("python-twisted" ,python-twisted)
110 ("python-treq" ,python-treq)
111 ("python-pyopenssl" ,python-pyopenssl)
112 ("python-pyyaml" ,python-pyyaml)
113 ("python-pyasn1" ,python-pyasn1)
114 ("python-pyasn1-modules" ,python-pyasn1-modules)
115 ("python-daemonize" ,python-daemonize)
116 ("python-bcrypt" ,python-bcrypt)
117 ("python-pillow" ,python-pillow)
118 ("python-sortedcontainers" ,python-sortedcontainers)
119 ("python-pymacaroons" ,python-pymacaroons)
120 ("python-msgpack" ,python-msgpack)
121 ("python-phonenumbers" ,python-phonenumbers)
122 ("python-six" ,python-six)
123 ("python-prometheus-client" ,python-prometheus-client)
124 ("python-attrs" ,python-attrs)
125 ("python-netaddr" ,python-netaddr)
126 ("python-jinja2" ,python-jinja2)
127 ("python-bleach" ,python-bleach)
128 ("python-typing-extensions" ,python-typing-extensions)
129 ;; conditional requirements (synapse/python_dependencies.py)
2d84d653 130 ;;("python-hiredis" ,python-hiredis)
70c128dc
AW
131 ("python-matrix-synapse-ldap3" ,python-matrix-synapse-ldap3)
132 ("python-psycopg2" ,python-psycopg2)
133 ("python-jinja2" ,python-jinja2)
134 ("python-txacme" ,python-txacme)
135 ("python-pysaml2" ,python-pysaml2)
136 ("python-lxml" ,python-lxml)
ecf33bf1 137 ("python-packaging" ,python-packaging)
70c128dc
AW
138 ;; sentry-sdk, jaeger-client, and opentracing could be included, but
139 ;; all are monitoring aids and not essential.
140 ("python-pyjwt" ,python-pyjwt)))
141 (native-inputs
142 `(("python-mock" ,python-mock)
143 ("python-parameterized" ,python-parameterized)))
144 (home-page "https://github.com/matrix-org/synapse")
145 (synopsis "Matrix reference homeserver")
146 (description "Synapse is a reference \"homeserver\" implementation of
147Matrix from the core development team at matrix.org, written in
148Python/Twisted. It is intended to showcase the concept of Matrix and let
149folks see the spec in the context of a codebase and let you run your own
150homeserver and generally help bootstrap the ecosystem.")
151 (license license:asl2.0)))