matrix-synapse-plugins.matrix-synapse-mjolnir-antispam: init at 0.1.17
This commit is contained in:
parent
33dbd881ce
commit
5be91dcf84
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
matrix-synapse-ldap3 = callPackage ./ldap3.nix { };
|
matrix-synapse-ldap3 = callPackage ./ldap3.nix { };
|
||||||
|
matrix-synapse-mjolnir-antispam = callPackage ./mjolnir-antispam.nix { };
|
||||||
matrix-synapse-pam = callPackage ./pam.nix { };
|
matrix-synapse-pam = callPackage ./pam.nix { };
|
||||||
matrix-synapse-shared-secret-auth = callPackage ./shared-secret-auth.nix { };
|
matrix-synapse-shared-secret-auth = callPackage ./shared-secret-auth.nix { };
|
||||||
}
|
}
|
||||||
|
|
32
pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix
Normal file
32
pkgs/servers/matrix-synapse/plugins/mjolnir-antispam.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "matrix-synapse-mjolnir-antispam";
|
||||||
|
version = "0.1.17";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "matrix-org";
|
||||||
|
repo = "mjolnir";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-uBI5AllXWgl3eL60WZ/j11Tt7QpY7CKcmFQOU74/Qjs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue