matrix-synapse: expose nixos-test in derivation

As proposed during the last matrix-synapse bump[1].

[1] https://github.com/NixOS/nixpkgs/pull/75860#issuecomment-567007810
This commit is contained in:
Maximilian Bosch 2019-12-19 14:30:50 +01:00
parent 35b56558a0
commit e4b91567e8
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, python3, openssl
, enableSystemd ? stdenv.isLinux
, enableSystemd ? stdenv.isLinux, nixosTests
}:
with python3.pkgs;
@ -78,6 +78,8 @@ in buildPythonApplication rec {
doCheck = !stdenv.isDarwin;
passthru.tests = { inherit (nixosTests) matrix-synapse; };
checkPhase = ''
PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
'';