nixpkgs/pkgs/by-name/ss/ssh-audit/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

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