diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/matrix-synapse/plugins/shared-secret-auth.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/matrix-synapse/plugins/shared-secret-auth.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/matrix-synapse/plugins/shared-secret-auth.nix b/nixpkgs/pkgs/servers/matrix-synapse/plugins/shared-secret-auth.nix new file mode 100644 index 000000000000..b5be02a4b21a --- /dev/null +++ b/nixpkgs/pkgs/servers/matrix-synapse/plugins/shared-secret-auth.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, matrix-synapse-unwrapped, 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-unwrapped ]; + 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 ]; + }; +} |