Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paperless-ngx: 2.11.6 -> 2.12.1 #343643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pkgs/applications/office/paperless-ngx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
}:

let
version = "2.11.6";
version = "2.12.1";

src = fetchFromGitHub {
owner = "paperless-ngx";
repo = "paperless-ngx";
rev = "refs/tags/v${version}";
hash = "sha256-RNX+KS2h9zrOK8QzeQWH55pkNPTDW4gic2HLG+XXLRg=";
hash = "sha256-txqwVGLUel74ObCqwMWSqa4Nd2eDRf0SqAIes5tlMDg=";
};

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

npmDepsHash = "sha256-ML1Yp3JIMbRF6kVu190ReoY7oDUtUfNkHE7dHF6YUAE=";
npmDepsHash = "sha256-hb2z2cPMTN5bHtUldTR5Mvgo4nZL8/S+Uhfis37gF44=";

nativeBuildInputs = [
pkg-config
Expand Down Expand Up @@ -116,7 +116,7 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "paperless-ngx";
format = "other";
pyproject = false;

inherit version src;

Expand All @@ -125,7 +125,7 @@ python.pkgs.buildPythonApplication rec {
xorg.lndir
];

propagatedBuildInputs = with python.pkgs; [
dependencies = with python.pkgs; [
bleach
channels
channels-redis
Expand Down Expand Up @@ -192,7 +192,7 @@ python.pkgs.buildPythonApplication rec {
'';

installPhase = let
pythonPath = python.pkgs.makePythonPath propagatedBuildInputs;
pythonPath = python.pkgs.makePythonPath dependencies;
in ''
runHook preInstall

Expand All @@ -203,7 +203,7 @@ python.pkgs.buildPythonApplication rec {
makeWrapper $out/lib/paperless-ngx/src/manage.py $out/bin/paperless-ngx \
--prefix PYTHONPATH : "${pythonPath}" \
--prefix PATH : "${path}"
makeWrapper ${python.pkgs.celery}/bin/celery $out/bin/celery \
makeWrapper ${lib.getExe python.pkgs.celery} $out/bin/celery \
--prefix PYTHONPATH : "${pythonPath}:$out/lib/paperless-ngx/src" \
--prefix PATH : "${path}"

Expand All @@ -225,7 +225,8 @@ python.pkgs.buildPythonApplication rec {
pytest-httpx
pytest-mock
pytest-rerunfailures
pytest-xdist
# used by upstream but unflaky in nix, TODO: investigate why
# pytest-xdist
Copy link
Member Author

@dotlambda dotlambda Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__main__.py: error: unrecognized arguments: --numprocesses --maxprocesses=16 src

pytestCheckHook
];

Expand Down