2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse }:
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matrix-synapse-mjolnir-antispam";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.4.1";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "mjolnir";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-zVb0lD5tYhX2a2MzNVQ8u7rMuQ8yGC/JlodbY4nsqNU=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "./source/synapse_antispam";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ matrix-synapse ];
|
|
|
|
|
|
|
|
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#synapse-module";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|