Unverified Commit d95b40ed authored by Benjamin Staffin's avatar Benjamin Staffin Committed by GitHub
Browse files

netbox-routing: init at 0.2.3 (#387430)

parent 9cb65c88
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  netbox,
  pytestCheckHook,
  python,
  django-polymorphic,
}:

buildPythonPackage rec {
  pname = "netbox-routing";
  version = "0.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "DanSheps";
    repo = "netbox-routing";
    tag = "v${version}";
    hash = "sha256-63twRJNVCdZHHMbZ1jzK5RRn9KRK4uGeHJJok/u4zIA=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ netbox ];

  preFixup = ''
    export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
  '';

  dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;

  pythonImportsCheck = [ "netbox_routing" ];

  dependencies = [ django-polymorphic ];

  meta = {
    description = "A NetBox plugin for tracking all kinds of routing information";
    homepage = "https://github.com/DanSheps/netbox-routing";
    changelog = "https://github.com/DanSheps/netbox-routing/releases/tag/${src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ benley ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9387,6 +9387,8 @@ self: super: with self; {
  netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
  netbox-routing = callPackage ../development/python-modules/netbox-routing { };
  netbox-topology-views = callPackage ../development/python-modules/netbox-topology-views { };
  netcdf4 = callPackage ../development/python-modules/netcdf4 { };