python3Packages.psycopg: move env vars into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-28 14:03:17 +01:00
parent 7e6283ff6e
commit d7e0a0f69d
@@ -134,12 +134,6 @@ buildPythonPackage rec {
sphinxRoot = "../docs";
# Introduce this file necessary for the docs build via environment var
LIBPQ_DOCS_FILE = fetchurl {
url = "https://raw.githubusercontent.com/postgres/postgres/496a1dc44bf1261053da9b3f7e430769754298b4/doc/src/sgml/libpq.sgml";
hash = "sha256-JwtCngkoi9pb0pqIdNgukY8GbG5pUDZvrGAHZqjFOw4";
};
inherit patches;
# only move to sourceRoot after patching, makes patching easier
@@ -185,6 +179,11 @@ buildPythonPackage rec {
++ optional-dependencies.pool;
env = {
# Introduce this file necessary for the docs build via environment var
LIBPQ_DOCS_FILE = fetchurl {
url = "https://raw.githubusercontent.com/postgres/postgres/496a1dc44bf1261053da9b3f7e430769754298b4/doc/src/sgml/libpq.sgml";
hash = "sha256-JwtCngkoi9pb0pqIdNgukY8GbG5pUDZvrGAHZqjFOw4";
};
postgresqlEnableTCP = 1;
PGUSER = "psycopg";
PGDATABASE = "psycopg";