2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse, twisted }:
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "matrix-synapse-shared-secret-auth";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.0.1";
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devture";
|
|
|
|
repo = "matrix-synapse-shared-secret-auth";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-kaok5IwKx97FYDrVIGAtUJfExqDln5vxEKrZda2RdzE=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "shared_secret_authenticator" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildInputs = [ matrix-synapse ];
|
2021-03-15 08:37:03 +00:00
|
|
|
propagatedBuildInputs = [ twisted ];
|
2022-02-10 20:34:41 +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-15 08:37:03 +00:00
|
|
|
}
|