From 1e9b5d08569cce793f59f9e24a542fad9b2622a9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 9 Apr 2026 02:10:03 +0200 Subject: [PATCH] snmpen: init at 1.1.0 SNMP Enumeration tool https://github.com/fabaff/snmpen --- pkgs/by-name/sn/snmpen/package.nix | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/sn/snmpen/package.nix diff --git a/pkgs/by-name/sn/snmpen/package.nix b/pkgs/by-name/sn/snmpen/package.nix new file mode 100644 index 000000000000..e97f1acec472 --- /dev/null +++ b/pkgs/by-name/sn/snmpen/package.nix @@ -0,0 +1,47 @@ +{ + lib, + fetchFromGitHub, + python3, + versionCheckHook, +}: + +python3.pkgs.buildPythonApplication (finalAttrs: { + pname = "snmpen"; + version = "1.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "fabaff"; + repo = "snmpen"; + tag = finalAttrs.version; + hash = "sha256-PH1kUnDOiiE7ouEkhd1+TuIBziB2uxCVnmiEkCgQma0="; + }; + + build-system = with python3.pkgs; [ hatchling ]; + + dependencies = with python3.pkgs; [ + humanize + pysnmp + rich + ]; + + nativeBuildInputs = with python3.pkgs; [ + pytestCheckHook + pytest-asyncio + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + pythonImportsCheck = [ "snmpen" ]; + + doInstallCheck = true; + + meta = { + description = "SNMP Enumeration tool"; + homepage = "https://github.com/fabaff/snmpen"; + changelog = "https://github.com/fabaff/snmpen/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "snmpen"; + }; +})