Merge master into staging-next

This commit is contained in:
nixpkgs-ci[bot]
2025-03-07 18:04:52 +00:00
committed by GitHub
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

@@ -9389,6 +9389,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 { };