diff options
Diffstat (limited to 'pkgs/applications/office/paperless-ngx/default.nix')
-rw-r--r-- | pkgs/applications/office/paperless-ngx/default.nix | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index 808b04f3a329b..a46498a0f0017 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -7,7 +7,7 @@ , python3 , giflib , darwin -, ghostscript +, ghostscript_headless , imagemagickBig , jbig2enc , optipng @@ -24,13 +24,13 @@ }: let - version = "2.7.2"; + version = "2.9.0"; src = fetchFromGitHub { owner = "paperless-ngx"; repo = "paperless-ngx"; rev = "refs/tags/v${version}"; - hash = "sha256-vXW2d45Mth3Y95xPPH8bFjVLWVdUl+WuvSXJyPD3FyU="; + hash = "sha256-7dcZbuz3yi0sND6AEqIwIo9byeZheOpIAhmBpOW5lhU="; }; # subpath installation is broken with uvicorn >= 0.26 @@ -50,12 +50,24 @@ let hash = "sha256-ng98DTw49zyFjrPnEwfnPfONyjKKZYuLl0qduxSppYk="; }; }); + + djangorestframework = prev.djangorestframework.overridePythonAttrs (oldAttrs: rec { + version = "3.14.0"; + src = oldAttrs.src.override { + rev = version; + hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4="; + }; + nativeCheckInputs = with prev; [ + pytest7CheckHook + pytest-django + ]; + }); }; }; path = lib.makeBinPath [ - ghostscript + ghostscript_headless imagemagickBig jbig2enc optipng @@ -74,7 +86,7 @@ let cd src-ui ''; - npmDepsHash = "sha256-MJ5pnQChghZBfVN6Lbz6VcMtbe8QadiFLTsMF5TlebQ="; + npmDepsHash = "sha256-gLEzifZK8Ok1SOo3YIIV5pTx4cbedQh025VqkodYrYQ="; nativeBuildInputs = [ pkg-config @@ -244,9 +256,12 @@ python.pkgs.buildPythonApplication rec { disabledTests = [ # FileNotFoundError(2, 'No such file or directory'): /build/tmp... "test_script_with_output" + "test_script_exit_non_zero" # AssertionError: 10 != 4 (timezone/time issue) # Due to getting local time from modification date in test_consumer.py "testNormalOperation" + # Something broken with new Tesseract and inline RTL/LTR overrides? + "test_rtl_language_detection" ]; doCheck = !stdenv.isDarwin; |