Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 43 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, buildPythonPackage, fetchFromGitHub, setuptools, drf-extra-fields, python, netbox,}:
buildPythonPackage rec { pname = "netbox-documents"; version = "0.7.3"; pyproject = true;
src = fetchFromGitHub { owner = "jasonyates"; repo = "netbox-documents"; tag = "v${version}"; hash = "sha256-lEbD+NuLyHXnXjGBdceE8RYhmoKEccRB4rKuxknjZL4="; };
build-system = [ setuptools ];
dependencies = [ drf-extra-fields ];
nativeCheckInputs = [ netbox ];
preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH '';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion; pythonImportsCheck = [ "netbox_documents" ];
meta = { description = "Plugin designed to faciliate the storage of site, circuit, device type and device specific documents within NetBox"; homepage = "https://github.com/jasonyates/netbox-documents"; changelog = "https://github.com/jasonyates/netbox-documents/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ felbinger ]; };}