Unverified Commit 4672a714 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

snmpen: init at 1.1.0 (#508123)

parents 6041efa6 1e9b5d08
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  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";
  };
})