python3Packages.netbox-plugin-prometheus-sd: init at 1.1.1 (#307786)

This commit is contained in:
Franz Pletz
2024-12-01 21:36:21 +01:00
committed by GitHub
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
netbox,
}:
buildPythonPackage rec {
pname = "netbox-plugin-prometheus-sd";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "FlxPeters";
repo = "netbox-plugin-prometheus-sd";
rev = "v${version}";
hash = lib.fakeHash;
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
netbox
];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
pythonImportsCheck = [ "netbox_prometheus_sd" ];
meta = with lib; {
description = "Netbox plugin to provide Netbox entires to Prometheus HTTP service discovery";
homepage = "https://pypi.org/project/netbox-plugin-prometheus-sd/";
license = licenses.mit;
maintainers = with maintainers; [ xanderio ];
};
}
+2
View File
@@ -9064,6 +9064,8 @@ self: super: with self; {
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
netbox-plugin-prometheus-sd = callPackage ../development/python-modules/netbox-plugin-prometheus-sd { };
netcdf4 = callPackage ../development/python-modules/netcdf4 { };
netdata = callPackage ../development/python-modules/netdata { };