Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: python3Packages.psycopg2 0 -> 1 attrpath: python3Packages.psycopg2 Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/ymnbh2j9crfrsfgrijsymki5llg7z9ri-packages.json.drv building '/nix/store/ymnbh2j9crfrsfgrijsymki5llg7z9ri-packages.json.drv'... Going to be running update for following packages: - python3.14-psycopg2-2.9.11 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - python3.14-psycopg2-2.9.11: UPDATING ... - python3.14-psycopg2-2.9.11: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/psycopg2/default.nix b/pkgs/development/python-modules/psycopg2/default.nix index b985f5120b23..d7e6138f7644 100644 --- a/pkgs/development/python-modules/psycopg2/default.nix +++ b/pkgs/development/python-modules/psycopg2/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "psycopg2"; - version = "2.9.11"; + version = "2.9.12"; pyproject = true; # Extension modules don't work well with PyPy. Use psycopg2cffi instead. @@ -30,7 +30,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-lk0xyvco4hfGl/936mnCughl+kHsILsA8Jd+Yv3MUuM="; + hash = "sha256-He2xx6HYVSxKYETGscQaUuao4tFEr4PsysdYB2sbfBU="; }; postPatch = '' No auto update branch exists Old version 2.9.11" not present in staging derivation file with contents: { stdenv, lib, buildPythonPackage, isPyPy, fetchPypi, libpq, postgresql, postgresqlTestHook, openssl, sphinxHook, sphinx-better-theme, buildPackages, setuptools, }: buildPythonPackage rec { pname = "psycopg2"; version = "2.9.12"; pyproject = true; # Extension modules don't work well with PyPy. Use psycopg2cffi instead. # c.f. https://github.com/NixOS/nixpkgs/pull/104151#issuecomment-729750892 disabled = isPyPy; outputs = [ "out" "doc" ]; src = fetchPypi { inherit pname version; hash = "sha256-He2xx6HYVSxKYETGscQaUuao4tFEr4PsysdYB2sbfBU="; }; postPatch = '' # Preferably upstream would not depend on pg_config because config scripts are incompatible with cross-compilation, however postgresql's pc file is lacking information. # some linker flags are added but the linker ignores them because they're incompatible # https://github.com/psycopg/psycopg2/blob/89005ac5b849c6428c05660b23c5a266c96e677d/setup.py substituteInPlace setup.py \ --replace-fail "self.pg_config_exe = self.build_ext.pg_config" 'self.pg_config_exe = "${libpq.pg_config}/bin/pg_config"' ''; nativeBuildInputs = [ sphinxHook sphinx-better-theme ]; build-system = [ setuptools ]; buildInputs = [ libpq ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ openssl ]; sphinxRoot = "doc/src"; # test suite breaks at some point with: # current transaction is aborted, commands ignored until end of transaction block doCheck = false; nativeCheckInputs = [ postgresql postgresqlTestHook ]; env = { PGDATABASE = "psycopg2_test"; }; pythonImportsCheck = [ "psycopg2" ]; disallowedReferences = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ buildPackages.libpq ]; meta = { description = "PostgreSQL database adapter for the Python programming language"; homepage = "https://www.psycopg.org"; license = with lib.licenses; [ lgpl3Plus zpl20 ]; maintainers = [ ]; }; }