Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
matrix-synapse-unwrapped,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "matrix-synapse-mjolnir-antispam";
|
|
version = "1.11.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "mjolnir";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-+MdPJz9QEiohWZZXvGdfR6NeLS5jyHUifD6LSZbFfvs=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/synapse_antispam";
|
|
|
|
buildInputs = [ matrix-synapse-unwrapped ];
|
|
|
|
doCheck = false; # no tests
|
|
pythonImportsCheck = [ "mjolnir" ];
|
|
|
|
meta = with lib; {
|
|
description = "AntiSpam / Banlist plugin to be used with mjolnir";
|
|
longDescription = ''
|
|
Primarily meant to block invites from undesired homeservers/users,
|
|
Mjolnir's Synapse module is a way to interpret ban lists and apply
|
|
them to your entire homeserver.
|
|
'';
|
|
homepage = "https://github.com/matrix-org/mjolnir/blob/main/docs/synapse_module.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jojosch ];
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|