Skip to content

Commit

Permalink
paperless-ngx: 2.13.5 -> 2.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tebriel authored and SuperSandro2000 committed Jan 18, 2025
1 parent c8f6666 commit 2877488
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions pkgs/by-name/pa/paperless-ngx/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
buildNpmPackage,
nodejs_20,
nixosTests,
Expand All @@ -26,15 +25,14 @@
nltk-data,
xorg,
}:

let
version = "2.13.5";
version = "2.14.3";

src = fetchFromGitHub {
owner = "paperless-ngx";
repo = "paperless-ngx";
rev = "refs/tags/v${version}";
hash = "sha256-AVfm5tC2+hTdEv0ildEj0El1M/sF7ftkEn3pUkG1O7Q=";
tag = "v${version}";
hash = "sha256-pn5WZkA4oWp+vRu4FhITXI8tzgi47Osbx5nUpWy8NoM=";
};

# subpath installation is broken with uvicorn >= 0.26
Expand Down Expand Up @@ -88,7 +86,7 @@ let
cd src-ui
'';

npmDepsHash = "sha256-pBCWcdCTQh0N4pRLBWLZXybuhpiat030xvPZ5z7CUJ0=";
npmDepsHash = "sha256-JUmYSHHrNWpJNp01Er2zMgiVVIIOAC+QlKw1HAjD7/E=";

nativeBuildInputs =
[
Expand Down Expand Up @@ -138,14 +136,6 @@ python.pkgs.buildPythonApplication rec {

inherit version src;

patches = [
(fetchpatch2 {
name = "ocrmypdf-16.6-compat.patch";
url = "https://github.com/paperless-ngx/paperless-ngx/commit/d1f255a22ea53712cb9101277ec57ea1976f9c02.patch?full_index=1";
hash = "sha256-V2nnNeNCcfSrjOttQ5rgDj7gnxpfpBPVeDDnMea0C3U=";
})
];

postPatch = ''
# pytest-xdist with to many threads makes the tests flaky
if (( $NIX_BUILD_CORES > 4)); then
Expand Down Expand Up @@ -215,6 +205,7 @@ python.pkgs.buildPythonApplication rec {
whoosh
zxing-cpp
]
++ django-allauth.optional-dependencies.mfa
++ django-allauth.optional-dependencies.socialaccount
++ redis.optional-dependencies.hiredis
++ uvicorn.optional-dependencies.standard;
Expand Down

0 comments on commit 2877488

Please sign in to comment.