1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 netbox, 7 pytestCheckHook, 8 python, 9 django-polymorphic, 10}: 11 12buildPythonPackage rec { 13 pname = "netbox-routing"; 14 version = "0.3.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "DanSheps"; 19 repo = "netbox-routing"; 20 tag = "v${version}"; 21 hash = "sha256-qtGzZDRo80pdmt3CbM+HG/S7uLvLS7V6lHNB8sM6bcA="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ netbox ]; 27 28 preFixup = '' 29 export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH 30 ''; 31 32 dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion; 33 34 pythonImportsCheck = [ "netbox_routing" ]; 35 36 dependencies = [ django-polymorphic ]; 37 38 meta = { 39 description = "NetBox plugin for tracking all kinds of routing information"; 40 homepage = "https://github.com/DanSheps/netbox-routing"; 41 changelog = "https://github.com/DanSheps/netbox-routing/releases/tag/${src.tag}"; 42 license = lib.licenses.asl20; 43 maintainers = with lib.maintainers; [ benley ]; 44 }; 45}