2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, nixosTests
|
2023-10-09 19:29:22 +00:00
|
|
|
, python3Packages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ssh-audit";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.2.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-20 17:08:02 +00:00
|
|
|
owner = "jtesta";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-g5h0A1BJqzOZaSVUxyi7IsCcrbto4+7+HpiVjFZy50Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2020-08-20 17:08:02 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) ssh-audit;
|
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool for ssh server auditing";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ssh-audit";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/jtesta/ssh-audit";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/jtesta/ssh-audit/releases/tag/v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.mit;
|
2020-10-27 00:29:36 +00:00
|
|
|
platforms = platforms.all;
|
2020-10-19 23:25:03 +00:00
|
|
|
maintainers = with maintainers; [ tv SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|