For people not using redis
: there is now an "automated patching mechanism" that will instead use the next best fork of redis
that is available on your system as the Requires=
dependency in *.service
. This way, anyone can use their favorite fork of it. Keep in mind that upstream does not explicitly say that forks of redis
work as well, and this further makes the built paperless-ngx-venv
package non-portable. Happy experimenting :)
Search Criteria
Package Details: paperless-ngx-venv 2.15.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/paperless-ngx-venv.git (read-only, click to copy) |
---|---|
Package Base: | paperless-ngx-venv |
Description: | paperless-ngx: scan, index and archive all your physical documents |
Upstream URL: | https://docs.paperless-ngx.com/ |
Keywords: | documents paperless |
Licenses: | GPL-3.0-or-later |
Conflicts: | paperless, paperless-ng, paperless-ngx |
Provides: | paperless, paperless-ngx-venv |
Replaces: | paperless-ngx |
Submitter: | AlphaJack |
Maintainer: | AlphaJack (atomicfs, shtrophic) |
Last Packager: | shtrophic |
Votes: | 27 |
Popularity: | 0.43 |
First Submitted: | 2024-11-02 15:19 (UTC) |
Last Updated: | 2025-04-15 21:25 (UTC) |
Dependencies (23)
- file (file-gitAUR)
- ghostscript
- gnupg (gnupg-gitAUR, gnupg-largekeysAUR)
- imagemagick (imagemagick-gitAUR, imagemagick-full-gitAUR, imagemagick-fullAUR)
- nltk-data
- optipng
- poppler (poppler-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- redis (redis-testingAUR, redis-gitAUR, keydbAUR, redictAUR, valkey)
- sqlite (sqlite-fossilAUR)
- tesseract-data-eng (tesseract-data-eng-gitAUR, tesseract-data-best-engAUR)
- ttf-liberation (ttf-defenestrationAUR)
- unpaper (unpaper-gitAUR)
- findutils (findutils-gitAUR, findutils-selinuxAUR) (make)
- mariadb (mysql55AUR, mysql56AUR, mysql81AUR, mysql57AUR, mysqlAUR, mysql80AUR, mysql84AUR, mariadb-lts, percona-server) (make)
- postgresql (postgresql13AUR, postgresql-gitAUR, postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql16-docsAUR, postgresql16AUR) (make)
- postgresql-libs (postgresql13-libsAUR, postgresql-libs-gitAUR, postgresql-libs-12AUR) (make)
- uv (make)
- gotenbergAUR (gotenbergAUR) (optional) – convert files to pdf
- jbig2encAUR (jbig2encAUR, jbig2enc-gitAUR) (optional) – smaller PDF size
- Show 3 more dependencies...
Required by (0)
Sources (10)
shtrophic commented on 2025-04-14 20:22 (UTC) (edited on 2025-04-14 20:32 (UTC) by shtrophic)
xnmbyy commented on 2025-04-13 16:38 (UTC)
Hi,
Thanks for the good work! The redis in Extra repo has been replaced by valkey. Could you change "Requires=redis.service" to "Requires=valkey.service"? Thank you!
vianney commented on 2025-03-06 20:33 (UTC)
Hi there,
I can confirm extra/ghostscript
should be added as a dependency, so should extra/poppler
I believe: this one contains pdftotext which, if not present, causes errors to be thrown (but do not prevent pdf files to then be processed with ocr).
luziferius commented on 2025-03-01 11:56 (UTC)
FYI: The project recently switched the used webserver (https://github.com/paperless-ngx/paperless-ngx/pull/9218) from gunicorn to granian (https://pypi.org/project/granian) So 2.15 will likely require some larger fixes for the PKGBUILD. They do provide aarch64 and x86_64 wheels though, so it won't require a rust compiler as a make dependency.
dp20eic commented on 2025-01-17 15:55 (UTC)
Moin,
@shtrophic kommentierte 2025-01-14 17:27 (CET)
I once set up a new LXC with paperless-ngx-venv, I then exported the data on the old paperless-ngx
using paperless-manage
and then imported it again on the new one using paperless-manage
, that worked so far.
Two small things were missing, ghost script and extra/python-psycopg
because I use PostgreSQL instead of SQLite.
Thanks for advice Bernd
shtrophic commented on 2025-01-15 20:25 (UTC)
applied, thanks!
luziferius commented on 2025-01-15 14:22 (UTC)
Packaging is currently broken on aarch64, which still runs on Python 3.12, so the application of patches that hard-code 3.13
in paths doesn't work.
Symptom:
patching file /home/thomas/.cache/yay/paperless-ngx-venv/src/venv/lib/python3.13/site-packages/whoosh/analysis/filters.py
Hunk #1 FAILED at 53.
Hunk #2 FAILED at 155.
Hunk #3 FAILED at 164.
patch: **** Can't reopen file /home/thomas/.cache/yay/paperless-ngx-venv/src/venv/lib/python3.13/site-packages/whoosh/analysis/filters.py : No such file or directory
To mitigate this, use site.getsitepackages() from the Python standard library to read the paths. It returns a list of items, so unpacking that gets the first directory, which is the desired one while the venv is active. Patch for PKGBUILD:
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -93,11 +93,12 @@ prepare(){
python -m venv "$srcdir/venv"
source "$srcdir/venv/bin/activate"
pip install -r "$srcdir/$_pkgname/requirements.txt"
+ site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
deactivate
# fix regex warnings
for whoosh in filters intraword; do
- patch "$srcdir/venv/lib/python3.13/site-packages/whoosh/analysis/$whoosh.py" < "$srcdir/whoosh-$whoosh.patch"
+ patch "$site_packages/whoosh/analysis/$whoosh.py" < "$srcdir/whoosh-$whoosh.patch"
done
}
shtrophic commented on 2025-01-14 16:27 (UTC) (edited on 2025-01-14 16:27 (UTC) by shtrophic)
Hi @dp20eic, @tobias_de,
please try again with the paperless-manage
utility. Calling manage.py manually will not work, as this package installs a virtual environment into /usr/lib/paperless
, which manage.py does not know about.
dp20eic commented on 2025-01-14 12:24 (UTC)
Moin,
@tobias_de thanks for your support, I will check it today.
Kind regards Bernd
Pinned Comments
shtrophic commented on 2025-04-14 20:22 (UTC) (edited on 2025-04-14 20:32 (UTC) by shtrophic)
For people not using
redis
: there is now an "automated patching mechanism" that will instead use the next best fork ofredis
that is available on your system as theRequires=
dependency in*.service
. This way, anyone can use their favorite fork of it. Keep in mind that upstream does not explicitly say that forks ofredis
work as well, and this further makes the builtpaperless-ngx-venv
package non-portable. Happy experimenting :)