summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-09-19 20:20:17 +0900
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-09-27 15:34:44 +0200
commit9e25a706d2ff38e608a6a468ddf5fcd91902d8c8 (patch)
tree486ceb9905b8bfd91c74547b982c06decfed4266 /pkgs/applications/office
parent34c1b3b274001c56f2ca363ec19bb91521204e77 (diff)
downloadnixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar.gz
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar.bz2
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar.lz
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar.xz
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.tar.zst
nixpkgs-9e25a706d2ff38e608a6a468ddf5fcd91902d8c8.zip
paperless-ngx: 1.17.2 -> 1.17.4
Diff: https://github.com/paperless-ngx/paperless-ngx/compare/refs/tags/v1.17.2...v1.17.4

Changelog: https://github.com/paperless-ngx/paperless-ngx/releases/tag/v1.17.4
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/paperless-ngx/default.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix
index 7d9346c153b..87a838b4bcc 100644
--- a/pkgs/applications/office/paperless-ngx/default.nix
+++ b/pkgs/applications/office/paperless-ngx/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 , buildNpmPackage
 , nixosTests
 , gettext
@@ -19,13 +20,13 @@
 }:
 
 let
-  version = "1.17.2";
+  version = "1.17.4";
 
   src = fetchFromGitHub {
     owner = "paperless-ngx";
     repo = "paperless-ngx";
     rev = "refs/tags/v${version}";
-    hash = "sha256-/0Ml3NRTghqNykB1RZfqDW9TtENnSRM7wqG7Vn4Kl04=";
+    hash = "sha256-Kl8AUfHfEiEy40qeDI8x2rxdXcj01mpitw7T/96ibQQ=";
   };
 
   # Use specific package versions required by paperless-ngx
@@ -51,7 +52,7 @@ let
     pname = "paperless-ngx-frontend";
     inherit version src;
 
-    npmDepsHash = "sha256-6EvC9Ka8gl0eRgJtHooB3yQNVGYzuH/WRga4AtzQ0EY=";
+    npmDepsHash = "sha256-5Q9NtIO7k/6AiF9Er10HhmEBFyQOP9CiTkTZglUeChg=";
 
     nativeBuildInputs = [
       python3
@@ -91,6 +92,16 @@ python.pkgs.buildPythonApplication rec {
 
   inherit version src;
 
+  patches = [
+    # https://github.com/paperless-ngx/paperless-ngx/pull/4146
+    (fetchpatch {
+      name = "fix-tests-for-python311.patch";
+      url = "https://github.com/paperless-ngx/paperless-ngx/commit/73f6c0a056e3859061339e295f57213fd4239b2d.patch";
+      hash = "sha256-sZcRug5T4cw5ppKpGYrrfz9RxtYxnkeNOlXcMgdWT0E=";
+    })
+  ];
+
+
   nativeBuildInputs = [
     gettext
   ];