about summary refs log tree commit diff
path: root/pkgs/servers/matrix-synapse/plugins
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-02-20 01:46:15 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-02-20 01:46:15 +0100
commit935a4e0039c5fc970a05fff8454c4f1d93f33756 (patch)
treee64e605cf7c69088b98b6f49af56517a4ad5c522 /pkgs/servers/matrix-synapse/plugins
parent5de1815be9e61eb3c0cef2517d7fe2b1f6a7b75d (diff)
matrix-synapse.plugins.matrix-synapse-pam: complete meta, add import check
Diffstat (limited to 'pkgs/servers/matrix-synapse/plugins')
-rw-r--r--pkgs/servers/matrix-synapse/plugins/pam.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/servers/matrix-synapse/plugins/pam.nix b/pkgs/servers/matrix-synapse/plugins/pam.nix
index a14fe6d6a6c58..3f51631a75e34 100644
--- a/pkgs/servers/matrix-synapse/plugins/pam.nix
+++ b/pkgs/servers/matrix-synapse/plugins/pam.nix
@@ -1,4 +1,4 @@
-{ buildPythonPackage, fetchFromGitHub, twisted, python-pam }:
+{ lib, buildPythonPackage, fetchFromGitHub, twisted, python-pam }:
 
 buildPythonPackage rec {
   pname = "matrix-synapse-pam";
@@ -12,4 +12,16 @@ buildPythonPackage rec {
   };
 
   propagatedBuildInputs = [ twisted python-pam ];
+
+  # has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [ "pam_auth_provider" ];
+
+  meta = with lib; {
+    description = "PAM auth provider for the Synapse Matrix server";
+    homepage = "https://github.com/14mRh4X0r/matrix-synapse-pam";
+    license = licenses.eupl12;
+    maintainers = with maintainers; [ ];
+  };
 }