Merge pull request #192260 from gador/paperless-ngx-1.9.0

paperless-ngx: 1.8.0 -> 1.9.1

authored by

Luke Granger-Brown and committed by
GitHub
59f5bb39 f0cf6bd7

+44 -48
+6 -10
pkgs/applications/office/paperless-ngx/default.nix
··· 26 26 src = fetchFromGitHub { 27 27 owner = "paperless-ngx"; 28 28 repo = "django-q"; 29 - sha256 = "sha256-aoDuPig8Nf8fLzn7GjBn69aF2zH2l8gxascAu9lIG3U="; 30 - rev = "71abc78fdaec029cf71e9849a3b0fa084a1678f7"; 29 + hash = "sha256-alu7tZwUn77xhUF9c/aGmwRwO//mR/FucXjvXUl/6ek="; 30 + rev = "8b5289d8caf36f67fb99448e76ead20d5b498c1b"; 31 31 }; 32 32 # due to paperless-ngx modification of the pyproject.toml file 33 33 # the patch is not needed any more 34 - patches = []; 35 - }); 36 - 37 - # django-extensions 3.1.5 is required, but its tests are incompatible with Django 4 38 - django-extensions = super.django-extensions.overridePythonAttrs (_: { 39 - doCheck = false; 34 + patches = [ ]; 40 35 }); 41 36 42 37 aioredis = super.aioredis.overridePythonAttrs (oldAttrs: rec { ··· 62 57 in 63 58 python.pkgs.pythonPackages.buildPythonApplication rec { 64 59 pname = "paperless-ngx"; 65 - version = "1.8.0"; 60 + version = "1.9.1"; 66 61 67 62 # Fetch the release tarball instead of a git ref because it contains the prebuilt fontend 68 63 src = fetchurl { 69 64 url = "https://github.com/paperless-ngx/paperless-ngx/releases/download/v${version}/${pname}-v${version}.tar.xz"; 70 - hash = "sha256-BLfhh04RvBJFRQiPXkMl8XlWqZOWKmjjl+6lZ326stU="; 65 + hash = "sha256-KWq3zUES8klXexNO9krlqZKZEajOhkTHF13t/3rxrPc="; 71 66 }; 72 67 73 68 format = "other"; ··· 116 111 inotifyrecursive 117 112 joblib 118 113 langdetect 114 + pkgs.libmysqlclient 119 115 lxml 120 116 msgpack 121 117 numpy
+14 -2
pkgs/applications/office/pdfmixtool/default.nix
··· 1 1 { lib 2 2 , mkDerivation 3 3 , fetchFromGitLab 4 + , fetchpatch 4 5 , cmake 5 6 , pkg-config 6 7 , qtbase 7 8 , qttools 8 9 , qpdf 9 10 , podofo 11 + , imagemagick 10 12 }: 11 13 12 14 mkDerivation rec { 13 15 pname = "pdfmixtool"; 14 - version = "1.0.2"; 16 + version = "1.1"; 15 17 16 18 src = fetchFromGitLab { 17 19 owner = "scarpetta"; 18 20 repo = pname; 19 21 rev = "v${version}"; 20 - sha256 = "066ap1w05gj8n0kvilyhlr1fzwrmlczx3lax7mbw0rfid9qh3467"; 22 + hash = "sha256-S8hhWZ6nHyIWPwsfl+o9XnljLD3aE/vthCLuWEbm5nc="; 21 23 }; 22 24 23 25 nativeBuildInputs = [ ··· 26 28 ]; 27 29 28 30 buildInputs = [ 31 + imagemagick 29 32 qtbase 30 33 qttools 31 34 qpdf 32 35 podofo 36 + ]; 37 + 38 + patches = [ 39 + # fix incompatibility with qpdf11 40 + (fetchpatch { 41 + url = "https://gitlab.com/scarpetta/pdfmixtool/-/commit/81f7e96f6e68dfeba3cd4e00d8553dfdd2d7f2fa.diff"; 42 + hash = "sha256-uBchYjUIqL7dJR7U/TSxhSGu1qY742cFUIv0XKU6L2g="; 43 + }) 44 + 33 45 ]; 34 46 35 47 meta = with lib; {
+9 -10
pkgs/development/libraries/qpdf/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, libjpeg, zlib, perl }: 1 + { lib, stdenv, fetchFromGitHub, libjpeg, zlib, cmake, perl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "qpdf"; 5 - version = "10.6.3"; 5 + version = "11.1.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "qpdf"; 9 9 repo = "qpdf"; 10 - rev = "release-qpdf-${version}"; 11 - hash = "sha256-SiZA8T7N1SWlbCFosSqFosLDV/3Q7+ywvgq1iB4umdg="; 10 + rev = "v${version}"; 11 + hash = "sha256-T06BLtDZN6ulJ9Po3LN1RlI6q8ddAfo95RAhyfrn+qg="; 12 12 }; 13 13 14 - nativeBuildInputs = [ perl ]; 14 + nativeBuildInputs = [ cmake perl ]; 15 15 16 16 buildInputs = [ zlib libjpeg ]; 17 17 18 - configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) 19 - "--with-random=/dev/urandom"; 20 - 21 - preCheck = '' 18 + preConfigure = '' 22 19 patchShebangs qtest/bin/qtest-driver 20 + patchShebangs run-qtest 21 + # qtest needs to know where the source code is 22 + substituteInPlace CMakeLists.txt --replace "run-qtest" "run-qtest --top $src --code $src --bin $out" 23 23 ''; 24 24 25 25 doCheck = true; 26 - enableParallelBuilding = true; 27 26 28 27 meta = with lib; { 29 28 homepage = "http://qpdf.sourceforge.net/";
+3 -5
pkgs/development/python-modules/pikepdf/default.nix
··· 24 24 25 25 buildPythonPackage rec { 26 26 pname = "pikepdf"; 27 - version = "5.4.2"; 27 + version = "6.0.2"; 28 28 format = "setuptools"; 29 29 30 30 disabled = pythonOlder "3.7"; ··· 39 39 postFetch = '' 40 40 rm "$out/.git_archival.txt" 41 41 ''; 42 - hash = "sha256-b4QUn+wfkk6Yx74ViBg6yaE1+bXtxidoyXYgBaJ9iiM="; 42 + hash = "sha256-rwMSmARUrScG2nmiYBSkcq0NuUMhn0pHOPvgdKZbH7w="; 43 43 }; 44 44 45 45 patches = [ ··· 51 51 ]; 52 52 53 53 postPatch = '' 54 - sed -i 's|\S*/opt/homebrew.*|pass|' setup.py 55 - 56 54 substituteInPlace setup.py \ 57 - --replace setuptools_scm_git_archive "" 55 + --replace "shims_enabled = not cflags_defined" "shims_enabled = False" 58 56 ''; 59 57 60 58 SETUPTOOLS_SCM_PRETEND_VERSION = version;
+12 -21
pkgs/development/python-modules/pikepdf/paths.patch
··· 12 12 check=True, 13 13 ) 14 14 diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py 15 - index be390a1..3818ec3 100644 15 + index 28c596b..aff3565 100644 16 16 --- a/src/pikepdf/jbig2.py 17 17 +++ b/src/pikepdf/jbig2.py 18 - @@ -31,7 +31,7 @@ def extract_jbig2( 18 + @@ -28,7 +28,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: 19 19 output_path = Path(tmpdir) / "outfile" 20 - 20 + 21 21 args = [ 22 22 - "jbig2dec", 23 23 + "@jbig2dec@", 24 24 "--embedded", 25 25 "--format", 26 26 "png", 27 - @@ -64,7 +64,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes: 28 - output_path = Path(tmpdir) / "outfile" 29 - 30 - args = [ 31 - - "jbig2dec", 32 - + "@jbig2dec@", 33 - "--embedded", 34 - "--format", 35 - "png", 36 - @@ -100,7 +100,7 @@ def extract_jbig2_bytes( 37 - 38 - def _check_jbig2dec_available() -> None: # pragma: no cover 39 - try: 40 - - proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii') 41 - + proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii') 42 - except (CalledProcessError, FileNotFoundError) as e: 43 - raise DependencyError("jbig2dec - not installed or not found") from e 44 - else: 27 + @@ -88,7 +88,7 @@ class JBIG2Decoder(JBIG2DecoderInterface): 28 + def _version(self) -> Version: 29 + try: 30 + proc = run( 31 + - ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii' 32 + + ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii' 33 + ) 34 + except (CalledProcessError, FileNotFoundError) as e: 35 + raise DependencyError("jbig2dec - not installed or not found") from e