841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
46 lines
1,018 B
Nix
46 lines
1,018 B
Nix
{ lib
|
|
, python3Packages
|
|
}:
|
|
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "synadm";
|
|
version = "0.29";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1vy30nwsns4jnv0s5i9jpyplxpclgwyw0gldpywv4z3fljs0lzik";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|