gnu: webkitgtk: Update to 2.28.2.
[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>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages matrix)
20 #:use-module ((guix licenses) #:prefix license:)
70c128dc
AW
21 #:use-module (gnu packages check)
22 #:use-module (gnu packages databases)
1518b4bc 23 #:use-module (gnu packages monitoring)
07529084 24 #:use-module (gnu packages python-crypto)
70c128dc 25 #:use-module (gnu packages python-web)
07529084 26 #:use-module (gnu packages python-xyz)
70c128dc 27 #:use-module (gnu packages xml)
07529084
AW
28 #:use-module (guix build-system python)
29 #:use-module (guix download)
30 #:use-module (guix packages))
31
32(define-public python-matrix-synapse-ldap3
33 (package
34 (name "python-matrix-synapse-ldap3")
35 (version "0.1.4")
36 (source
37 (origin
38 (method url-fetch)
39 (uri (pypi-uri "matrix-synapse-ldap3" version))
40 (sha256
41 (base32
42 "01bms89sl16nyh9f141idsz4mnhxvjrc3gj721wxh1fhikps0djx"))))
43 (build-system python-build-system)
44 (arguments
45 ;; tests require synapse, creating a circular dependency.
46 '(#:tests? #f))
47 (propagated-inputs
48 `(("python-twisted" ,python-twisted)
49 ("python-ldap3" ,python-ldap3)
50 ("python-service-identity" ,python-service-identity)))
51 (home-page "https://github.com/matrix-org/matrix-synapse-ldap3")
52 (synopsis "LDAP3 auth provider for Synapse")
53 (description
54 "This package allows Synapse to use LDAP as a password provider.
55This lets users log in to Synapse with their username and password from
56an LDAP server.")
57 (license license:asl2.0)))
70c128dc
AW
58
59(define-public synapse
60 (package
61 (name "synapse")
62 (version "1.11.0")
63 (source (origin
64 (method url-fetch)
65 (uri (pypi-uri "matrix-synapse" version))
66 (sha256
67 (base32
68 "0cqbwcz0fi4w413s1kcxvf696qi4n46n1k4ggnygqri5yq26qlfy"))))
69 (build-system python-build-system)
70 ;; TODO I think there are custom tests
71 (propagated-inputs
72 `(("python-simplejson" ,python-simplejson) ; not attested but required
73 ;; requirements (synapse/python_dependencies.py)
74 ("python-jsonschema" ,python-jsonschema)
75 ("python-frozendict" ,python-frozendict)
76 ("python-unpaddedbase64" ,python-unpaddedbase64)
77 ("python-canonicaljson" ,python-canonicaljson)
78 ("python-signedjson" ,python-signedjson)
79 ("python-pynacl" ,python-pynacl)
80 ("python-idna" ,python-idna)
81 ("python-service-identity" ,python-service-identity)
82 ("python-twisted" ,python-twisted)
83 ("python-treq" ,python-treq)
84 ("python-pyopenssl" ,python-pyopenssl)
85 ("python-pyyaml" ,python-pyyaml)
86 ("python-pyasn1" ,python-pyasn1)
87 ("python-pyasn1-modules" ,python-pyasn1-modules)
88 ("python-daemonize" ,python-daemonize)
89 ("python-bcrypt" ,python-bcrypt)
90 ("python-pillow" ,python-pillow)
91 ("python-sortedcontainers" ,python-sortedcontainers)
92 ("python-pymacaroons" ,python-pymacaroons)
93 ("python-msgpack" ,python-msgpack)
94 ("python-phonenumbers" ,python-phonenumbers)
95 ("python-six" ,python-six)
96 ("python-prometheus-client" ,python-prometheus-client)
97 ("python-attrs" ,python-attrs)
98 ("python-netaddr" ,python-netaddr)
99 ("python-jinja2" ,python-jinja2)
100 ("python-bleach" ,python-bleach)
101 ("python-typing-extensions" ,python-typing-extensions)
102 ;; conditional requirements (synapse/python_dependencies.py)
103 ("python-matrix-synapse-ldap3" ,python-matrix-synapse-ldap3)
104 ("python-psycopg2" ,python-psycopg2)
105 ("python-jinja2" ,python-jinja2)
106 ("python-txacme" ,python-txacme)
107 ("python-pysaml2" ,python-pysaml2)
108 ("python-lxml" ,python-lxml)
109 ;; sentry-sdk, jaeger-client, and opentracing could be included, but
110 ;; all are monitoring aids and not essential.
111 ("python-pyjwt" ,python-pyjwt)))
112 (native-inputs
113 `(("python-mock" ,python-mock)
114 ("python-parameterized" ,python-parameterized)))
115 (home-page "https://github.com/matrix-org/synapse")
116 (synopsis "Matrix reference homeserver")
117 (description "Synapse is a reference \"homeserver\" implementation of
118Matrix from the core development team at matrix.org, written in
119Python/Twisted. It is intended to showcase the concept of Matrix and let
120folks see the spec in the context of a codebase and let you run your own
121homeserver and generally help bootstrap the ecosystem.")
122 (license license:asl2.0)))