matrix-synapse: make dependency for hiredis
optional
This is only needed for replication which isn't even supported by the current NixOS module.
This commit is contained in:
parent
2e2eea4338
commit
ff9487703e
@ -1,5 +1,6 @@
|
|||||||
{ lib, stdenv, python3, openssl
|
{ lib, stdenv, python3, openssl
|
||||||
, enableSystemd ? stdenv.isLinux, nixosTests
|
, enableSystemd ? stdenv.isLinux, nixosTests
|
||||||
|
, enableRedis ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
with python3.pkgs;
|
||||||
@ -53,14 +54,15 @@ buildPythonApplication rec {
|
|||||||
typing-extensions
|
typing-extensions
|
||||||
authlib
|
authlib
|
||||||
pyjwt
|
pyjwt
|
||||||
hiredis
|
] ++ lib.optional enableSystemd systemd
|
||||||
] ++ lib.optional enableSystemd systemd;
|
++ lib.optional enableRedis hiredis;
|
||||||
|
|
||||||
checkInputs = [ mock parameterized openssl ];
|
checkInputs = [ mock parameterized openssl ];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
${lib.optionalString (!enableRedis) "rm -r tests/replication # these tests need the optional dependency 'hiredis'"}
|
||||||
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
|
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user