166.2. python3-psycopg2-2.9.13
The PostgreSQL adapter for Python, over libpq
2.9.13-1 · LGPL-3.0-or-later · 0.5 SBU · 612.6 KiB, 31 files · 41_system, 878 of 1047 · ports/core/python-libs/python3-psycopg2
Homepage: https://www.psycopg.org/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/python-libs.txt:
PostgreSQL's Python driver: the Tryton server behind GNU Health and QGIS's database connections go through it.
Depends on: python3, python3-setuptools, python3-pip, python3-wheel, postgresql.
Required by (2): gnuhealth, qgis.
Sources: python3-psycopg2-2.9.13.tar.gz (369.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install python3-psycopg2'
build.sh:
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
Directories: /usr/lib/python3.14/site-packages/psycopg2, /usr/lib/python3.14/site-packages/psycopg2-2.9.13.dist-info, /usr/share/licenses/python3-psycopg2.