Skip to content

Commit

Permalink
python3Packages.netbox-floorplan-plugin: init at 0.6.0
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Felbinger <[email protected]>
  • Loading branch information
Chaostheorie and felbinger committed Jan 12, 2025
1 parent e2dfb4c commit bcec56d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
}:
buildPythonPackage rec {
pname = "netbox-floorplan-plugin";
version = "0.6.0";
pyproject = true;

src = fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-floorplan-plugin";
rev = version;
hash = "sha256-cJrqSXRCBedZh/pIozz/bHyhQosTy8cFYyji3KJva9Q=";
};

build-system = [ setuptools ];

nativeCheckInputs = [ netbox ];

preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';

pythonImportsCheck = [ "netbox_floorplan" ];

meta = with lib; {
description = "A netbox plugin providing floorplan mapping capability for locations and sites.";
homepage = "https://github.com/netbox-community/netbox-floorplan-plugin";
changelog = "https://github.com/netbox-community/netbox-floorplan-plugin/releases/tag/${src.rev}";
license = licenses.lgpl3;
maintainers = with maintainers; [ cobalt ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9114,6 +9114,8 @@ self: super: with self; {

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

netbox-floorplan-plugin = callPackage ../development/python-modules/netbox-floorplan-plugin { };

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

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

0 comments on commit bcec56d

Please sign in to comment.