Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, setuptools, netbox, python, napalm, django,}:buildPythonPackage rec { pname = "netbox-napalm-plugin"; version = "0.3.1"; pyproject = true;
disabled = python.pythonVersion != netbox.python.pythonVersion;
src = fetchFromGitHub { owner = "netbox-community"; repo = "netbox-napalm-plugin"; rev = "v${version}"; hash = "sha256-nog6DymnnD0ABzG21jy00yNWhSTHfd7vJ4vo1DjsfKs="; };
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/${src.rev}"; license = lib.licenses.asl20; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ felbinger ]; };}