Skip to content

Commit 99e5285

Browse files
ChaostheoriefelbingerSuperSandro2000
committed
python3Packages.netbox-floorplan-plugin: init at 0.6.0
Co-authored-by: Nico Felbinger <[email protected]> Co-authored-by: Sandro <[email protected]>
1 parent 80dec5f commit 99e5285

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
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)