matrix-synapse.tools.synadm: init at 0.29

This commit is contained in:
Martin Weinelt 2021-06-03 23:58:49 +02:00
parent c06b1086c0
commit 7efe82966d
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 43 additions and 0 deletions

View file

@ -1,4 +1,6 @@
{ callPackage }:
{
rust-synapse-compress-state = callPackage ./rust-synapse-compress-state.nix { };
synadm = callPackage ./synadm.nix { };
}

View file

@ -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 ];
};
}