Skip to content

Commit 4672a71

Browse files
authored
snmpen: init at 1.1.0 (NixOS#508123)
2 parents 6041efa + 1e9b5d0 commit 4672a71

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

pkgs/by-name/sn/snmpen/package.nix

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
python3,
5+
versionCheckHook,
6+
}:
7+
8+
python3.pkgs.buildPythonApplication (finalAttrs: {
9+
pname = "snmpen";
10+
version = "1.1.0";
11+
pyproject = true;
12+
13+
src = fetchFromGitHub {
14+
owner = "fabaff";
15+
repo = "snmpen";
16+
tag = finalAttrs.version;
17+
hash = "sha256-PH1kUnDOiiE7ouEkhd1+TuIBziB2uxCVnmiEkCgQma0=";
18+
};
19+
20+
build-system = with python3.pkgs; [ hatchling ];
21+
22+
dependencies = with python3.pkgs; [
23+
humanize
24+
pysnmp
25+
rich
26+
];
27+
28+
nativeBuildInputs = with python3.pkgs; [
29+
pytestCheckHook
30+
pytest-asyncio
31+
];
32+
33+
nativeInstallCheckInputs = [ versionCheckHook ];
34+
35+
pythonImportsCheck = [ "snmpen" ];
36+
37+
doInstallCheck = true;
38+
39+
meta = {
40+
description = "SNMP Enumeration tool";
41+
homepage = "https://github.com/fabaff/snmpen";
42+
changelog = "https://github.com/fabaff/snmpen/blob/${finalAttrs.src.rev}/CHANGELOG.md";
43+
license = lib.licenses.mit;
44+
maintainers = with lib.maintainers; [ fab ];
45+
mainProgram = "snmpen";
46+
};
47+
})

0 commit comments

Comments
 (0)