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";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.6.4";
|
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}";
|
2023-02-22 10:55:15 +00:00
|
|
|
sha256 = "sha256-/vnojWLpu/fktqPUhAdL1QTESxDwFrBVYAkyF79Fj9w=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|