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-08-12 12:06:08 +00:00
|
|
|
version = "1.5.0";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "mjolnir";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-YmP+r9W5e63Aw66lSQeTTbYwSF/vjPyHkoehJxtcRNw=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|