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