netboxPlugins.netbox-inventory: init at 2.5.1 (#523949)

This commit is contained in:
Sandro 2026-05-25 16:00:08 +00:00 committed by GitHub
commit dc04883f1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
python,
}:
buildPythonPackage rec {
pname = "netbox-inventory";
version = "2.5.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ArnesSI";
repo = "netbox-inventory";
tag = "v${version}";
hash = "sha256-6MIYwz11YZhu3ksM7iAfKACKIKpuq283DTzaRR3lcXA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ netbox ];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_inventory" ];
meta = {
description = "NetBox plugin to manage hardware inventory";
homepage = "https://github.com/ArnesSI/netbox-inventory";
changelog = "https://github.com/ArnesSI/netbox-inventory/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ felbinger ];
};
}