skim: 0.15.7 -> 0.16.0 (#376410)
[NixPkgs.git] / pkgs / by-name / ss / ssh-audit / package.nix
blobda87760dcf6cef5580dff6016a89fb880c039a95
2   lib,
3   fetchFromGitHub,
4   installShellFiles,
5   nixosTests,
6   python3Packages,
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "ssh-audit";
11   version = "3.3.0";
12   pyproject = true;
14   outputs = [
15     "out"
16     "man"
17   ];
19   src = fetchFromGitHub {
20     owner = "jtesta";
21     repo = "ssh-audit";
22     tag = "v${version}";
23     hash = "sha256-sjYKQpn37zH3xpuIiZAjCn0DyLqqoQDwuz7PKDfkeTM=";
24   };
26   build-system = with python3Packages; [ setuptools ];
28   nativeBuildInputs = [ installShellFiles ];
30   postInstall = ''
31     installManPage $src/ssh-audit.1
32   '';
34   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
36   passthru.tests = {
37     inherit (nixosTests) ssh-audit;
38   };
40   meta = with lib; {
41     description = "Tool for ssh server auditing";
42     homepage = "https://github.com/jtesta/ssh-audit";
43     changelog = "https://github.com/jtesta/ssh-audit/releases/tag/v${version}";
44     license = licenses.mit;
45     platforms = platforms.all;
46     maintainers = with maintainers; [
47       tv
48       SuperSandro2000
49     ];
50     mainProgram = "ssh-audit";
51   };