netbox_4_6.plugins.netbox-attachments: init at 11.2.3

This commit is contained in:
Jeffrey C. Ollie
2026-07-20 11:14:32 -05:00
parent bf1777e48e
commit 45a405d235

View File

@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
python,
netbox,
django,
netaddr,
}:
buildPythonPackage (finalAttrs: {
__structuredAttrs = true;
pname = "netbox-attachments";
version = "11.2.3";
pyproject = true;
disabled = python.pythonVersion != netbox.python.pythonVersion;
src = fetchFromGitHub {
owner = "Kani999";
repo = "netbox-attachments";
tag = "v${finalAttrs.version}";
hash = "sha256-zuRwUKYywiyIm7qvOUmbxYfct+ZR+GmaQ4oxf3gMVY4=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
netbox
django
netaddr
];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
pythonImportsCheck = [ "netbox_attachments" ];
passthru.pluginName = "netbox_attachments";
meta = {
description = "Plugin to manage attachments for any model";
homepage = "https://github.com/Kani999/netbox-attachments";
changelog = "https://github.com/Kani999/netbox-attachments/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ felbinger ];
};
})