diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index 28314d48fe51..61c607c422e8 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -266,6 +266,11 @@ python.pkgs.buildPythonApplication rec { --prefix PATH : "${path}" ''; + postFixup = '' + # Remove tests with samples (~14M) + find $out/lib/paperless-ngx -type d -name tests -exec rm -rv {} + + ''; + nativeCheckInputs = with python.pkgs; [ factory_boy imagehash