2021-06-04 09:07:49 +00:00
|
|
|
{ lib
|
2023-03-24 00:07:29 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
|
|
|
, nix-update-script
|
2021-06-04 09:07:49 +00:00
|
|
|
}:
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-06-04 09:07:49 +00:00
|
|
|
pname = "synadm";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.41.3";
|
2021-06-04 09:07:49 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-06-04 09:07:49 +00:00
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-gWEgLpSE77XdocAZqN1i/vR5dvYFsgsg5zs5Dj90V/o=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-06-04 09:07:49 +00:00
|
|
|
click
|
|
|
|
click-option-group
|
2022-08-21 13:32:41 +00:00
|
|
|
dnspython
|
2021-06-04 09:07:49 +00:00
|
|
|
tabulate
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
$out/bin/synadm -h > /dev/null
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
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)
|
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/JOJ0/synadm/releases/tag/v${version}";
|
2021-06-04 09:07:49 +00:00
|
|
|
homepage = "https://github.com/JOJ0/synadm";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|