synapse-http-antispam: init at 0.3.0

https://github.com/maunium/synapse-http-antispam/releases/tag/v0.3.0

Co-authored-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
Sumner Evans
2025-04-12 17:34:26 -06:00
co-authored by Ethan Carter Edwards
parent f19b9ebccb
commit 95d96e1d7b
2 changed files with 40 additions and 0 deletions
@@ -7,4 +7,5 @@
matrix-synapse-pam = callPackage ./pam.nix { };
matrix-synapse-s3-storage-provider = callPackage ./s3-storage-provider.nix { };
matrix-synapse-shared-secret-auth = callPackage ./shared-secret-auth.nix { };
synapse-http-antispam = callPackage ./synapse-http-antispam.nix { };
}
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
matrix-synapse-unwrapped,
nix-update-script,
twisted,
}:
buildPythonPackage rec {
pname = "synapse-http-antispam";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "maunium";
repo = "synapse-http-antispam";
tag = "v${version}";
hash = "sha256-wWm23+3o+/nx3xGkyShJm28mDPTbOhPbKgW3WfuB0Ng=";
};
build-system = [ hatchling ];
pythonImportsCheck = [ "synapse_http_antispam" ];
buildInputs = [ matrix-synapse-unwrapped ];
dependencies = [ twisted ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Synapse module that forwards spam checking to an HTTP server";
homepage = "https://github.com/maunium/synapse-http-antispam";
changelog = "https://github.com/maunium/synapse-http-antispam/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sumnerevans ];
};
}