14 extraBuildInputs = plugins python3.pkgs;
16 python3.pkgs.buildPythonApplication rec {
22 src = fetchFromGitHub {
23 owner = "netbox-community";
25 rev = "refs/tags/v${version}";
29 patches = extraPatches;
31 propagatedBuildInputs =
40 django-graphiql-debug-toolbar
51 drf-spectacular-sidecar
54 swagger-spec-validator # from drf-yasg[validation]
67 social-auth-app-django
74 buildInputs = with python3.pkgs; [
76 mkdocs-material-extensions
86 PYTHONPATH=$PYTHONPATH:netbox/
87 python -m mkdocs build
91 mkdir -p $out/opt/netbox
92 cp -r . $out/opt/netbox
93 chmod +x $out/opt/netbox/netbox/manage.py
94 makeWrapper $out/opt/netbox/netbox/manage.py $out/bin/netbox \
95 --prefix PYTHONPATH : "$PYTHONPATH"
100 # PYTHONPATH of all dependencies used by the package
101 pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
102 gunicorn = python3.pkgs.gunicorn;
107 homepage = "https://github.com/netbox-community/netbox";
108 description = "IP address management (IPAM) and data center infrastructure management (DCIM) tool";
109 mainProgram = "netbox";
110 license = lib.licenses.asl20;
111 knownVulnerabilities = (
112 lib.optional eol "Netbox version ${version} is EOL; please upgrade by following the current release notes instructions."
115 # Notice the missing `lib` in the inherit: it is using this function argument rather than a `with lib;` argument.
116 # If you replace this by `with lib;`, pay attention it does not inherit all maintainers in nixpkgs.