mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
8886cb63e2
https://github.com/matrix-org/synapse/releases/tag/v1.21.1 [1] https://github.com/matrix-org/synapse/releases/tag/v1.21.2 [1] Not really relevant for as since only a bug in the Debian packaging was fixed.
77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{ lib, stdenv, python3, openssl
|
|
, enableSystemd ? stdenv.isLinux, nixosTests
|
|
}:
|
|
|
|
with python3.pkgs;
|
|
|
|
let
|
|
plugins = python3.pkgs.callPackage ./plugins { };
|
|
in
|
|
buildPythonApplication rec {
|
|
pname = "matrix-synapse";
|
|
version = "1.21.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "061b2mpdzqxyks1kj3p7xmw8i4akqfd2s9vb7v8w27k2qpcw7528";
|
|
};
|
|
|
|
patches = [
|
|
# adds an entry point for the service
|
|
./homeserver-script.patch
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
bcrypt
|
|
bleach
|
|
canonicaljson
|
|
daemonize
|
|
frozendict
|
|
jinja2
|
|
jsonschema
|
|
lxml
|
|
msgpack
|
|
netaddr
|
|
phonenumbers
|
|
pillow
|
|
prometheus_client
|
|
psutil
|
|
psycopg2
|
|
pyasn1
|
|
pymacaroons
|
|
pynacl
|
|
pyopenssl
|
|
pysaml2
|
|
pyyaml
|
|
requests
|
|
signedjson
|
|
sortedcontainers
|
|
treq
|
|
twisted
|
|
unpaddedbase64
|
|
typing-extensions
|
|
authlib
|
|
pyjwt
|
|
] ++ lib.optional enableSystemd systemd;
|
|
|
|
checkInputs = [ mock parameterized openssl ];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkPhase = ''
|
|
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) matrix-synapse; };
|
|
passthru.plugins = plugins;
|
|
passthru.python = python3;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://matrix.org";
|
|
description = "Matrix reference homeserver";
|
|
license = licenses.asl20;
|
|
maintainers = teams.matrix.members;
|
|
};
|
|
}
|