{ lib, buildPythonPackage, fetchFromGitHub, setuptools, netbox, python, }: buildPythonPackage (finalAttrs: { pname = "netbox-custom-objects"; version = "0.6.0"; pyproject = true; __structuredAttrs = true; src = fetchFromGitHub { owner = "netboxlabs"; repo = "netbox-custom-objects"; tag = "v${finalAttrs.version}"; hash = "sha256-HnA2CJL0EOJctQpsu/G+9fULBIa8rrrYNiT0aaDw/rI="; }; build-system = [ setuptools ]; nativeCheckInputs = [ netbox ]; preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH ''; dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion; pythonImportsCheck = [ "netbox_custom_objects" ]; meta = { description = "NetBox plugin to create new object types"; homepage = "https://github.com/netboxlabs/netbox-custom-objects"; changelog = "https://github.com/netboxlabs/netbox-custom-objects/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.netboxLimitedUse; maintainers = with lib.maintainers; [ felbinger ]; }; })