netbox_4_6.plugins.netbox-lists: init at 4.0.4

This commit is contained in:
Jeffrey C. Ollie
2026-07-20 11:49:06 -05:00
parent 69b948184c
commit 4550dbface

View File

@@ -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 ];
};
})