9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
, nix-update-script
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "synadm";
|
|
version = "0.41.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gWEgLpSE77XdocAZqN1i/vR5dvYFsgsg5zs5Dj90V/o=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
click
|
|
click-option-group
|
|
dnspython
|
|
tabulate
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
export HOME=$TMPDIR
|
|
$out/bin/synadm -h > /dev/null
|
|
runHook postCheck
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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)
|
|
'';
|
|
changelog = "https://github.com/JOJ0/synadm/releases/tag/v${version}";
|
|
homepage = "https://github.com/JOJ0/synadm";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|