From 783f8f16c16ba47daffff2c6b92a96eb8bb5d363 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 5 Sep 2022 10:12:39 +0200 Subject: paperless: move `PYTHONPATH` definition to module `paperless-ngx.pythonPath` was incomplete due to the missing paperless-ngx source, so it had to be amended in the service. Instead of amending it, define it entirely in the service. This allows an override of `paperless-ngx.propagatedBuildInputs` to be reflected in the service's PYTHONPATH. --- pkgs/applications/office/paperless-ngx/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index a42ec844d115d..1deb8e7efe6e9 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -207,11 +207,7 @@ python.pkgs.pythonPackages.buildPythonApplication rec { ''; passthru = { - inherit python; - # PYTHONPATH of all dependencies used by the package - pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs; - inherit path; - + inherit python path; tests = { inherit (nixosTests) paperless; }; }; -- cgit 1.4.1