Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, setuptools, netbox, python, napalm, django,}:buildPythonPackage (finalAttrs: { pname = "netbox-napalm-plugin"; version = "0.3.4"; pyproject = true;
disabled = python.pythonVersion != netbox.python.pythonVersion;
src = fetchFromGitHub { owner = "netbox-community"; repo = "netbox-napalm-plugin"; tag = "v${finalAttrs.version}"; hash = "sha256-PdX69SS0SAeUuN2zwcv54Ooih1hyR9a19e7sc5tJvuQ="; };
build-system = [ setuptools ];
dependencies = [ napalm ];
nativeCheckInputs = [ netbox django ];
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'napalm<5.0' 'napalm' '';
preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH '';
pythonImportsCheck = [ "netbox_napalm_plugin" ];
meta = { description = "Netbox plugin for Napalm integration"; homepage = "https://github.com/netbox-community/netbox-napalm-plugin"; changelog = "https://github.com/netbox-community/netbox-napalm-plugin/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ felbinger ]; };})