mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
43 lines
1,002 B
Nix
43 lines
1,002 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, nixosTests
|
|
, python3Packages
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "ssh-audit";
|
|
version = "3.2.0";
|
|
format = "setuptools";
|
|
outputs = [ "out" "man" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jtesta";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-g5h0A1BJqzOZaSVUxyi7IsCcrbto4+7+HpiVjFZy50Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
postInstall = ''
|
|
installManPage $src/ssh-audit.1
|
|
'';
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) ssh-audit;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool for ssh server auditing";
|
|
mainProgram = "ssh-audit";
|
|
homepage = "https://github.com/jtesta/ssh-audit";
|
|
changelog = "https://github.com/jtesta/ssh-audit/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ tv SuperSandro2000 ];
|
|
};
|
|
}
|