Commit 9ba12417 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.netbox-interface-synchronization: cleanup, fix on python>=3.14

parent 2b2b623d
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  django,
  netaddr,
  netbox,
  numpy,
  psycopg,
  requests,
  setuptools,

  # tests
  netbox,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "netbox-interface-synchronization";
  version = "4.1.7";
  pyproject = true;
@@ -18,7 +25,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "NetTech2001";
    repo = "netbox-interface-synchronization";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-02fdfE1BwpWsh21M0oP65kMAbFxDxYHsAEWA64rUl18=";
  };

@@ -29,6 +36,7 @@ buildPythonPackage rec {
    netaddr
    requests
    numpy
    psycopg # not specified in pyproject.toml, but required at import time
  ];

  # netbox is required for the pythonImportsCheck; plugin does not provide unit tests
@@ -43,9 +51,9 @@ buildPythonPackage rec {
  meta = {
    description = "Netbox plugin to compare and synchronize interfaces between devices and device types";
    homepage = "https://github.com/NetTech2001/netbox-interface-synchronization";
    changelog = "https://github.com/NetTech2001/netbox-interface-synchronization/releases/tag/${src.tag}";
    changelog = "https://github.com/NetTech2001/netbox-interface-synchronization/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ felbinger ];
  };
}
})