8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
32 lines
955 B
Nix
32 lines
955 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "matrix-synapse-mjolnir-antispam";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "mjolnir";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zVb0lD5tYhX2a2MzNVQ8u7rMuQ8yGC/JlodbY4nsqNU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|