-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.netbox-floorplan-plugin: init at 0.6.0
Co-authored-by: Nico Felbinger <[email protected]> Co-authored-by: Sandro <[email protected]>
- Loading branch information
1 parent
f73a910
commit ec63872
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
pkgs/development/python-modules/netbox-floorplan-plugin/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters