diff options
| author | Leona Maroni <dev@leona.is> | 2023-06-22 20:16:50 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-06-23 17:25:20 +0000 |
| commit | e3fe39b436b8ac853986f2aadcf92975eb60d488 (patch) | |
| tree | d46dfcd2bdaf1b02a1c70ba57c1876800a188628 | |
| parent | python3Packages.tika-client: 0.1.0 -> 0.1.1 (diff) | |
| download | nixpkgs-e3fe39b436b8ac853986f2aadcf92975eb60d488.tar.gz | |
paperless-ngx: 1.16.1 -> 1.16.3
(cherry picked from commit 1340ad859250af8e566d7d46e514287bde89e2cf)
| -rw-r--r-- | pkgs/applications/office/paperless-ngx/default.nix | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index 3ffc7f65caaf..4c3f861b2bda 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -17,29 +17,19 @@ }: let - version = "1.16.1"; + version = "1.16.3"; src = fetchFromGitHub { owner = "paperless-ngx"; repo = "paperless-ngx"; rev = "refs/tags/v${version}"; - hash = "sha256-KmCUViKyjS/1+PL48TOeamYjSkg4J6ywvHgcIhNtVss="; + hash = "sha256-DudTg7d92/9WwaPtr2PrvojcGxZ8z3Z2oYA0LcrkxZI="; }; # Use specific package versions required by paperless-ngx python = python3.override { packageOverrides = self: super: { django = super.django_4; - - # Paperless tests fail with tika-client==0.1.0. Upstream WIP fix is at - # https://github.com/paperless-ngx/paperless-ngx/pull/3617 - tika-client = super.tika-client.overridePythonAttrs (oldAttrs: rec { - version = "0.0.3"; - src = oldAttrs.src.override { - rev = version; - hash = "sha256-IKPTQ4n/j/W292F0JpSEUC0X8E1tr961WEcNCN5ymoU="; - }; - }); }; }; @@ -59,7 +49,7 @@ let pname = "paperless-ngx-frontend"; inherit version src; - npmDepsHash = "sha256-GDdHlrU1x/uxDy4mwK7G4F9b7AJat3nhQESUpfDdKeE="; + npmDepsHash = "sha256-rzIDivZTZZWt6kgLt8mstYmvv5TlC+O8O/g01+aLMHQ="; nativeBuildInputs = [ python3 @@ -76,6 +66,13 @@ let "--" "--configuration" "production" ]; + doCheck = true; + checkPhase = '' + runHook preCheck + npm run test + runHook postCheck + ''; + installPhase = '' runHook preInstall mkdir -p $out/lib/paperless-ui |
