Skip to content

Commit d95b40e

Browse files
authored
netbox-routing: init at 0.2.3 (#387430)
1 parent 9cb65c8 commit d95b40e

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
netbox,
7+
pytestCheckHook,
8+
python,
9+
django-polymorphic,
10+
}:
11+
12+
buildPythonPackage rec {
13+
pname = "netbox-routing";
14+
version = "0.2.3";
15+
pyproject = true;
16+
17+
src = fetchFromGitHub {
18+
owner = "DanSheps";
19+
repo = "netbox-routing";
20+
tag = "v${version}";
21+
hash = "sha256-63twRJNVCdZHHMbZ1jzK5RRn9KRK4uGeHJJok/u4zIA=";
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 = "A 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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9387,6 +9387,8 @@ self: super: with self; {
93879387

93889388
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
93899389

9390+
netbox-routing = callPackage ../development/python-modules/netbox-routing { };
9391+
93909392
netbox-topology-views = callPackage ../development/python-modules/netbox-topology-views { };
93919393

93929394
netcdf4 = callPackage ../development/python-modules/netcdf4 { };

0 commit comments

Comments
 (0)