Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
994 B · 42 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, buildPythonPackage, fetchFromGitHub, setuptools, netbox, pytestCheckHook, python,}:
buildPythonPackage rec { pname = "netbox-bgp"; version = "0.16.0"; pyproject = true;
src = fetchFromGitHub { owner = "netbox-community"; repo = "netbox-bgp"; tag = "v${version}"; hash = "sha256-pm6Xn34kPlGMzQAsiwrfTprPZtw7edsyr3PpRtJWnNE="; };
build-system = [ setuptools ];
nativeCheckInputs = [ netbox ];
preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH '';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_bgp" ];
meta = { description = "NetBox plugin for BGP related objects documentation"; homepage = "https://github.com/netbox-community/netbox-bgp"; changelog = "https://github.com/netbox-community/netbox-bgp/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ felbinger ]; };}