netbox-routing: init at 0.2.3 (#387430)

This commit is contained in:
Benjamin Staffin 2025-03-07 13:02:11 -05:00 committed by GitHub
parent 9cb65c88b8
commit d95b40ed10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
pytestCheckHook,
python,
django-polymorphic,
}:
buildPythonPackage rec {
pname = "netbox-routing";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "DanSheps";
repo = "netbox-routing";
tag = "v${version}";
hash = "sha256-63twRJNVCdZHHMbZ1jzK5RRn9KRK4uGeHJJok/u4zIA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ netbox ];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_routing" ];
dependencies = [ django-polymorphic ];
meta = {
description = "A NetBox plugin for tracking all kinds of routing information";
homepage = "https://github.com/DanSheps/netbox-routing";
changelog = "https://github.com/DanSheps/netbox-routing/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
};
}

View File

@ -9387,6 +9387,8 @@ self: super: with self; {
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
netbox-routing = callPackage ../development/python-modules/netbox-routing { };
netbox-topology-views = callPackage ../development/python-modules/netbox-topology-views { };
netcdf4 = callPackage ../development/python-modules/netcdf4 { };