mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-15 03:06:33 +01:00
See https://github.com/netbox-community/netbox-floorplan-plugin/releases/tag/0.8.0 for the full changelog. This mainly adds support for netbox 4.4.
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
netbox,
|
|
django,
|
|
netaddr,
|
|
python,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "netbox-floorplan-plugin";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = python.pythonVersion != netbox.python.pythonVersion;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netbox-community";
|
|
repo = "netbox-floorplan-plugin";
|
|
tag = version;
|
|
hash = "sha256-27rVf3b1MNiTil+yx+PWtf6CzQ24oyCqLgeoYUje14o=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
netbox
|
|
django
|
|
netaddr
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|