2024-10-18 20:26:51 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
installShellFiles,
|
|
|
|
nixosTests,
|
|
|
|
python3Packages,
|
2023-09-08 10:46:01 +00:00
|
|
|
}:
|
2019-04-30 18:14:17 +00:00
|
|
|
|
2020-08-05 01:12:55 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-04-30 18:14:17 +00:00
|
|
|
pname = "ssh-audit";
|
2024-10-18 20:26:51 +00:00
|
|
|
version = "3.3.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
2019-04-30 18:14:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-05 01:12:55 +00:00
|
|
|
owner = "jtesta";
|
2024-10-18 20:26:51 +00:00
|
|
|
repo = "ssh-audit";
|
2023-09-08 10:44:47 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-18 20:26:51 +00:00
|
|
|
hash = "sha256-sjYKQpn37zH3xpuIiZAjCn0DyLqqoQDwuz7PKDfkeTM=";
|
2019-04-30 18:14:17 +00:00
|
|
|
};
|
|
|
|
|
2024-10-18 20:26:51 +00:00
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
|
2024-05-28 14:10:54 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2024-10-18 20:26:51 +00:00
|
|
|
|
2024-05-28 14:10:54 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage $src/ssh-audit.1
|
|
|
|
'';
|
|
|
|
|
2024-10-18 20:26:51 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
2020-08-05 01:12:55 +00:00
|
|
|
|
2023-10-16 08:31:39 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) ssh-audit;
|
|
|
|
};
|
|
|
|
|
2020-08-05 01:12:55 +00:00
|
|
|
meta = with lib; {
|
2019-04-30 18:14:17 +00:00
|
|
|
description = "Tool for ssh server auditing";
|
2020-08-05 01:12:55 +00:00
|
|
|
homepage = "https://github.com/jtesta/ssh-audit";
|
2023-09-08 10:44:47 +00:00
|
|
|
changelog = "https://github.com/jtesta/ssh-audit/releases/tag/v${version}";
|
2020-08-05 01:12:55 +00:00
|
|
|
license = licenses.mit;
|
2020-10-26 08:04:52 +00:00
|
|
|
platforms = platforms.all;
|
2024-10-18 20:26:51 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
tv
|
|
|
|
SuperSandro2000
|
|
|
|
];
|
|
|
|
mainProgram = "ssh-audit";
|
2019-04-30 18:14:17 +00:00
|
|
|
};
|
|
|
|
}
|