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]>
Co-authored-by: Sandro <[email protected]>
  • Loading branch information
3 people committed Jan 17, 2025
1 parent f73a910 commit ec63872
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "netbox-floorplan-plugin";
version = "0.6.0";
pyproject = true;

disabled = pythonAtLeast "3.13";

src = fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-floorplan-plugin";
tag = 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 = "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.tag}";
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 @@ -9029,6 +9029,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit ec63872

Please sign in to comment.