2020-08-20 17:08:02 +00:00
|
|
|
{ lib, fetchFromGitHub, 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";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "2.2.0";
|
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;
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1z1h9nsgfaxdnkr9dvc0yzc23b3wz436rg2fycg2glwjhhal8az7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-08-20 17:08:02 +00:00
|
|
|
cp ./README.md pypi/sshaudit/
|
|
|
|
cp ./ssh-audit.py pypi/sshaudit/sshaudit.py
|
|
|
|
mv pypi/* .
|
|
|
|
ls -lah
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-08-20 17:08:02 +00: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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/jtesta/ssh-audit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|