2020-08-05 03:12:55 +02:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2019-04-30 20:14:17 +02:00
|
|
|
|
2020-08-05 03:12:55 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-04-30 20:14:17 +02:00
|
|
|
pname = "ssh-audit";
|
2020-09-29 12:52:02 +02:00
|
|
|
version = "2.3.0";
|
2019-04-30 20:14:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-05 03:12:55 +02:00
|
|
|
owner = "jtesta";
|
2019-04-30 20:14:17 +02:00
|
|
|
repo = pname;
|
2020-08-05 03:12:55 +02:00
|
|
|
rev = "v${version}";
|
2020-09-29 12:52:02 +02:00
|
|
|
sha256 = "1k5nv2cdnzd3j2p729vjw6ya0gwwkxhqijs2b7p68wvp0n3y3m77";
|
2019-04-30 20:14:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-09-29 12:52:02 +02:00
|
|
|
cp ./README.md packages/sshaudit/
|
|
|
|
cp ./ssh-audit.py packages/sshaudit/sshaudit.py
|
|
|
|
mv packages/* .
|
2020-08-05 03:12:55 +02:00
|
|
|
ls -lah
|
2019-04-30 20:14:17 +02:00
|
|
|
'';
|
|
|
|
|
2020-08-05 03:12:55 +02:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_resolve_error"
|
|
|
|
"test_resolve_hostname_without_records"
|
|
|
|
"test_resolve_ipv4"
|
|
|
|
"test_resolve_ipv6"
|
|
|
|
"test_resolve_ipv46_both"
|
|
|
|
"test_resolve_ipv46_order"
|
|
|
|
"test_invalid_host"
|
|
|
|
"test_invalid_port"
|
|
|
|
"test_not_connected_socket"
|
|
|
|
"test_ssh2_server_simple"
|
|
|
|
];
|
2019-04-30 20:14:17 +02:00
|
|
|
|
2020-08-05 03:12:55 +02:00
|
|
|
meta = with lib; {
|
2019-04-30 20:14:17 +02:00
|
|
|
description = "Tool for ssh server auditing";
|
2020-08-05 03:12:55 +02:00
|
|
|
homepage = "https://github.com/jtesta/ssh-audit";
|
|
|
|
license = licenses.mit;
|
2020-09-29 12:52:19 +02:00
|
|
|
maintainers = with maintainers; [ tv SuperSandro2000 ];
|
2019-04-30 20:14:17 +02:00
|
|
|
};
|
|
|
|
}
|