nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 installShellFiles,
5 nixosTests,
6 python3Packages,
7}:
8
9python3Packages.buildPythonApplication rec {
10 pname = "ssh-audit";
11 version = "3.3.0";
12 pyproject = true;
13
14 outputs = [
15 "out"
16 "man"
17 ];
18
19 src = fetchFromGitHub {
20 owner = "jtesta";
21 repo = "ssh-audit";
22 tag = "v${version}";
23 hash = "sha256-sjYKQpn37zH3xpuIiZAjCn0DyLqqoQDwuz7PKDfkeTM=";
24 };
25
26 build-system = with python3Packages; [ setuptools ];
27
28 nativeBuildInputs = [ installShellFiles ];
29
30 postInstall = ''
31 installManPage $src/ssh-audit.1
32 '';
33
34 nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
35
36 passthru.tests = {
37 inherit (nixosTests) ssh-audit;
38 };
39
40 meta = {
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 = lib.licenses.mit;
45 platforms = lib.platforms.all;
46 maintainers = with lib.maintainers; [
47 tv
48 SuperSandro2000
49 ];
50 mainProgram = "ssh-audit";
51 };
52}