From 4550dbface0ada5e6de75a0fd70ff244ab07ce4c Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Mon, 20 Jul 2026 11:49:06 -0500 Subject: [PATCH] netbox_4_6.plugins.netbox-lists: init at 4.0.4 --- .../plugins/netbox-lists/package.nix | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ne/netbox_4_6/plugins/netbox-lists/package.nix diff --git a/pkgs/by-name/ne/netbox_4_6/plugins/netbox-lists/package.nix b/pkgs/by-name/ne/netbox_4_6/plugins/netbox-lists/package.nix new file mode 100644 index 000000000000..83d38b775256 --- /dev/null +++ b/pkgs/by-name/ne/netbox_4_6/plugins/netbox-lists/package.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + netbox, + python, +}: + +buildPythonPackage (finalAttrs: { + __structuredAttrs = true; + + pname = "netbox-lists"; + version = "4.0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "devon-mar"; + repo = "netbox-lists"; + tag = "v${finalAttrs.version}"; + hash = "sha256-RRUuvoeB3xfqlZr1v1zpRdmVZK9av52ZsADOh9s4toQ="; + }; + + build-system = [ hatchling ]; + + nativeCheckInputs = [ netbox ]; + + preFixup = '' + export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH + ''; + + dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion; + pythonImportsCheck = [ "netbox_lists" ]; + + passthru.pluginName = "netbox_lists"; + + meta = { + description = "NetBox plugin to generate IP and prefix lists. Integrates with Ansible, Terraform, Prometheus, Oxidized and more"; + homepage = "https://github.com/devon-mar/netbox-lists"; + changelog = "https://github.com/devon-mar/netbox-lists/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ felbinger ]; + }; +})