mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
[Backport release-24.11] python3Packages.netbox-floorplan-plugin: init at 0.6.0 (#374635)
This commit is contained in:
commit
d075248e4d
@ -4245,6 +4245,12 @@
|
||||
github = "CnTeng";
|
||||
githubId = 56501688;
|
||||
};
|
||||
cobalt = {
|
||||
email = "cobalt@cobalt.rocks";
|
||||
github = "Chaostheorie";
|
||||
githubId = 42151227;
|
||||
name = "Cobalt";
|
||||
};
|
||||
CobaltCause = {
|
||||
name = "Charles Hall";
|
||||
email = "charles@computer.surgery";
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -9033,6 +9033,8 @@ self: super: with self; {
|
||||
|
||||
netbox-documents = callPackage ../development/python-modules/netbox-documents { };
|
||||
|
||||
netbox-floorplan-plugin = callPackage ../development/python-modules/netbox-floorplan-plugin { };
|
||||
|
||||
netbox-interface-synchronization = callPackage ../development/python-modules/netbox-interface-synchronization { };
|
||||
|
||||
netbox-napalm-plugin = callPackage ../development/python-modules/netbox-napalm-plugin { };
|
||||
|
Loading…
Reference in New Issue
Block a user