paperless-ngx: 2.13.5 -> 2.14.4 (#374655)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
buildNpmPackage,
|
||||
nodejs_20,
|
||||
nixosTests,
|
||||
@@ -26,15 +25,14 @@
|
||||
nltk-data,
|
||||
xorg,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2.13.5";
|
||||
version = "2.14.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paperless-ngx";
|
||||
repo = "paperless-ngx";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-AVfm5tC2+hTdEv0ildEj0El1M/sF7ftkEn3pUkG1O7Q=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-asjTRjEMnJcmyAZNZQ+VxXeyGc+j0j1JAAOrOaQ7ma4=";
|
||||
};
|
||||
|
||||
# subpath installation is broken with uvicorn >= 0.26
|
||||
@@ -88,7 +86,7 @@ let
|
||||
cd src-ui
|
||||
'';
|
||||
|
||||
npmDepsHash = "sha256-pBCWcdCTQh0N4pRLBWLZXybuhpiat030xvPZ5z7CUJ0=";
|
||||
npmDepsHash = "sha256-JUmYSHHrNWpJNp01Er2zMgiVVIIOAC+QlKw1HAjD7/E=";
|
||||
|
||||
nativeBuildInputs =
|
||||
[
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user