{ lib, buildPythonPackage, fetchFromGitHub, setuptools, netbox, pytestCheckHook, python, }: buildPythonPackage rec { pname = "netbox-bgp"; version = "0.14.0"; pyproject = true; src = fetchFromGitHub { owner = "netbox-community"; repo = "netbox-bgp"; rev = "v${version}"; hash = "sha256-O/kvohyQRhAkDKN5smygyrldINkTQX6yY4eTHn7zSPU"; }; build-system = [ setuptools ]; nativeCheckInputs = [ netbox ]; preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH ''; dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion; pythonImportsCheck = [ "netbox_bgp" ]; meta = { description = "NetBox plugin for BGP related objects documentation"; homepage = "https://github.com/netbox-community/netbox-bgp"; changelog = "https://github.com/netbox-community/netbox-bgp/releases/tag/${src.rev}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ felbinger ]; }; }