diff options
| author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-06-03 23:58:49 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-06-03 23:15:30 +0000 |
| commit | 4827d347cc132933ab5a72b9e2a6e007fb4ef48d (patch) | |
| tree | b220df51f4f7f4d21374c3fd25a5424e8a40764a | |
| parent | python3Packages.click-option-group: init at 0.5.3 (diff) | |
| download | nixpkgs-4827d347cc132933ab5a72b9e2a6e007fb4ef48d.tar.gz | |
matrix-synapse.tools.synadm: init at 0.29
(cherry picked from commit 7efe82966df83ed82938912c4ecdf705ed49be4a)
| -rw-r--r-- | pkgs/servers/matrix-synapse/tools/default.nix | 2 | ||||
| -rw-r--r-- | pkgs/servers/matrix-synapse/tools/synadm.nix | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/servers/matrix-synapse/tools/default.nix b/pkgs/servers/matrix-synapse/tools/default.nix index 43667f9e16de..defc35bc0e0a 100644 --- a/pkgs/servers/matrix-synapse/tools/default.nix +++ b/pkgs/servers/matrix-synapse/tools/default.nix @@ -1,4 +1,6 @@ { callPackage }: { rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { }; + + synadm = callPackage ./synadm.nix { }; } diff --git a/pkgs/servers/matrix-synapse/tools/synadm.nix b/pkgs/servers/matrix-synapse/tools/synadm.nix new file mode 100644 index 000000000000..b9a0ff3acd9a --- /dev/null +++ b/pkgs/servers/matrix-synapse/tools/synadm.nix @@ -0,0 +1,41 @@ +{ lib +, python3Packages +}: + +with python3Packages; buildPythonApplication rec { + pname = "synadm"; + version = "0.29"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + sha256 = "1vy30nwsns4jnv0s5i9jpyplxpclgwyw0gldpywv4z3fljs0lzik"; + }; + + propagatedBuildInputs = [ + click + click-option-group + tabulate + pyyaml + requests + ]; + + checkPhase = '' + runHook preCheck + export HOME=$TMPDIR + $out/bin/synadm -h > /dev/null + runHook postCheck + ''; + + meta = with lib; { + description = "Command line admin tool for Synapse"; + longDescription = '' + A CLI tool to help admins of Matrix Synapse homeservers + conveniently issue commands available via its admin API's + (matrix-org/synapse@master/docs/admin_api) + ''; + homepage = "https://github.com/JOJ0/synadm"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ hexa ]; + }; +} |
