3cbfd2b52c
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
}:
|
|
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "synadm";
|
|
version = "0.32";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e3fc0db4920d36092a00080fe5b6dac867a6d19f630f69822c8544568f5885e2";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "Click>=7.0,<8.0" "Click"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|