diff --git a/pkgs/by-name/ne/netbox_4_6/plugins/netbox-attachments/package.nix b/pkgs/by-name/ne/netbox_4_6/plugins/netbox-attachments/package.nix new file mode 100644 index 000000000000..eff058bf72cc --- /dev/null +++ b/pkgs/by-name/ne/netbox_4_6/plugins/netbox-attachments/package.nix @@ -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 ]; + }; +})