Merge pull request #271164 from helsinki-systems/feat/netbox-gunicorn

netbox: Inherit gunicorn from the package
This commit is contained in:
Emily Trau
2023-12-02 13:37:33 +11:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ in {
serviceConfig = defaultServiceConfig // {
ExecStart = ''
${pkgs.python3Packages.gunicorn}/bin/gunicorn netbox.wsgi \
${pkg.gunicorn}/bin/gunicorn netbox.wsgi \
--bind ${cfg.listenAddress}:${toString cfg.port} \
--pythonpath ${pkg}/opt/netbox/netbox
'';
+1 -1
View File
@@ -1,6 +1,5 @@
{ lib
, fetchFromGitHub
, fetchpatch
, python3
, version
, hash
@@ -94,6 +93,7 @@
passthru = {
# PYTHONPATH of all dependencies used by the package
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
gunicorn = python3.pkgs.gunicorn;
inherit tests;
};