1 { lib, stdenv, buildPythonPackage, fetchFromGitHub, matrix-synapse-unwrapped }:
3 buildPythonPackage rec {
4 pname = "matrix-synapse-mjolnir-antispam";
7 src = fetchFromGitHub {
10 rev = "refs/tags/v${version}";
11 sha256 = "sha256-yD7QGsS2Em8Z95po9pGRUDmHgHe4z0j0Jnvy3IG7xKY=";
14 sourceRoot = "${src.name}/synapse_antispam";
16 buildInputs = [ matrix-synapse-unwrapped ];
18 doCheck = false; # no tests
19 pythonImportsCheck = [ "mjolnir" ];
22 description = "AntiSpam / Banlist plugin to be used with mjolnir";
24 Primarily meant to block invites from undesired homeservers/users,
25 Mjolnir's Synapse module is a way to interpret ban lists and apply
26 them to your entire homeserver.
28 homepage = "https://github.com/matrix-org/mjolnir/blob/main/docs/synapse_module.md";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ jojosch ];
31 broken = stdenv.hostPlatform.isDarwin;