Commit 53756dd5 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.netbox-plugin-prometheus-sd: migrate to finalAttrs

parent ce05a72d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  django,
  fetchFromGitHub,
  netaddr,
  netbox,
  numpy,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "netbox-interface-synchronization";
  version = "4.1.7";
@@ -24,6 +27,8 @@ buildPythonPackage rec {
  dependencies = [
    django
    netaddr
    requests
    numpy
  ];

  # netbox is required for the pythonImportsCheck; plugin does not provide unit tests
+4 −4
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  poetry-core,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "netbox-plugin-prometheus-sd";
  version = "1.3.0";
  pyproject = true;
@@ -16,7 +16,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "FlxPeters";
    repo = "netbox-plugin-prometheus-sd";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-2SVfWkw6/AkDihWp9chU8rTqLiSn9ax4uLaK1xydfGM=";
  };

@@ -43,8 +43,8 @@ buildPythonPackage rec {
  meta = {
    description = "Netbox plugin to provide Netbox entires to Prometheus HTTP service discovery";
    homepage = "https://github.com/FlxPeters/netbox-plugin-prometheus-sd";
    changelog = "https://github.com/FlxPeters/netbox-plugin-prometheus-sd/releases/tag/${src.tag}";
    changelog = "https://github.com/FlxPeters/netbox-plugin-prometheus-sd/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xanderio ];
  };
}
})