2022-01-18 14:48:45 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse, twisted }:
|
2021-03-13 07:45:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matrix-synapse-shared-secret-auth";
|
2022-04-20 20:21:19 +00:00
|
|
|
version = "2.0.2";
|
2021-03-13 07:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devture";
|
|
|
|
repo = "matrix-synapse-shared-secret-auth";
|
|
|
|
rev = version;
|
2022-04-20 20:21:19 +00:00
|
|
|
sha256 = "sha256-qzXKwTEOMtdvsxoU3Xh3vQyhK+Q18LfkeSts7EyDIXE=";
|
2021-03-13 07:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "shared_secret_authenticator" ];
|
|
|
|
|
2022-01-17 17:36:48 +00:00
|
|
|
buildInputs = [ matrix-synapse ];
|
2021-03-13 07:45:15 +00:00
|
|
|
propagatedBuildInputs = [ twisted ];
|
2022-01-18 14:48:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2021-03-13 07:45:15 +00:00
|
|
|
}
|