Skip to content

Commit c6241b0

Browse files
python3Packages.netbox-floorplan-plugin: init at 0.6.0 (NixOS#374618)
2 parents 005b37d + 99e5285 commit c6241b0

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4401,6 +4401,12 @@
44014401
github = "CnTeng";
44024402
githubId = 56501688;
44034403
};
4404+
cobalt = {
4405+
email = "[email protected]";
4406+
github = "Chaostheorie";
4407+
githubId = 42151227;
4408+
name = "Cobalt";
4409+
};
44044410
CobaltCause = {
44054411
name = "Charles Hall";
44064412
email = "[email protected]";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
netbox,
7+
pythonAtLeast,
8+
}:
9+
buildPythonPackage rec {
10+
pname = "netbox-floorplan-plugin";
11+
version = "0.6.0";
12+
pyproject = true;
13+
14+
disabled = pythonAtLeast "3.13";
15+
16+
src = fetchFromGitHub {
17+
owner = "netbox-community";
18+
repo = "netbox-floorplan-plugin";
19+
tag = version;
20+
hash = "sha256-cJrqSXRCBedZh/pIozz/bHyhQosTy8cFYyji3KJva9Q=";
21+
};
22+
23+
build-system = [ setuptools ];
24+
25+
nativeCheckInputs = [ netbox ];
26+
27+
preFixup = ''
28+
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
29+
'';
30+
31+
pythonImportsCheck = [ "netbox_floorplan" ];
32+
33+
meta = with lib; {
34+
description = "Netbox plugin providing floorplan mapping capability for locations and sites";
35+
homepage = "https://github.com/netbox-community/netbox-floorplan-plugin";
36+
changelog = "https://github.com/netbox-community/netbox-floorplan-plugin/releases/tag/${src.tag}";
37+
license = licenses.lgpl3;
38+
maintainers = with maintainers; [ cobalt ];
39+
};
40+
}

pkgs/top-level/python-packages.nix

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

91679167
netbox-documents = callPackage ../development/python-modules/netbox-documents { };
91689168

9169+
netbox-floorplan-plugin = callPackage ../development/python-modules/netbox-floorplan-plugin { };
9170+
91699171
netbox-interface-synchronization = callPackage ../development/python-modules/netbox-interface-synchronization { };
91709172

91719173
netbox-plugin-prometheus-sd = callPackage ../development/python-modules/netbox-plugin-prometheus-sd { };

0 commit comments

Comments
 (0)