summaryrefslogtreecommitdiff
path: root/overlays/matrix-synapse/1.70.1/plugins/shared-secret-auth.nix
blob: a6e22db34fe5cf9acf732aae337fc010fb54cc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse, twisted }:

buildPythonPackage rec {
  pname = "matrix-synapse-shared-secret-auth";
  version = "2.0.2";

  src = fetchFromGitHub {
    owner = "devture";
    repo = "matrix-synapse-shared-secret-auth";
    rev = version;
    sha256 = "sha256-qzXKwTEOMtdvsxoU3Xh3vQyhK+Q18LfkeSts7EyDIXE=";
  };

  doCheck = false;
  pythonImportsCheck = [ "shared_secret_authenticator" ];

  buildInputs = [ matrix-synapse ];
  propagatedBuildInputs = [ twisted ];

  meta = with lib; {
    description = "Shared Secret Authenticator password provider module for Matrix Synapse";
    homepage = "https://github.com/devture/matrix-synapse-shared-secret-auth";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ sumnerevans ];
  };
}