Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, python, fetchFromGitHub, setuptools, python-dateutil, drf-yasg, netbox, netaddr,}:buildPythonPackage rec { pname = "netbox-contract"; version = "2.4.0"; pyproject = true;
disabled = python.pythonVersion != netbox.python.pythonVersion;
src = fetchFromGitHub { owner = "mlebreuil"; repo = "netbox-contract"; tag = "v${version}"; hash = "sha256-duA53cuJ3q6CRp239xNMXQhGZHGn7IBIGNLoxt7hZh8="; };
build-system = [ setuptools ];
dependencies = [ python-dateutil drf-yasg ];
# running tests requires initialized django project nativeCheckInputs = [ netbox netaddr ];
preFixup = '' export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH '';
pythonImportsCheck = [ "netbox_contract" ];
meta = { description = "Contract plugin for netbox"; homepage = "https://github.com/mlebreuil/netbox-contract"; changelog = "https://github.com/mlebreuil/netbox-contract/releases/tag/${src.rev}"; license = lib.licenses.mit; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ felbinger ]; };}