python311Packages.psycopg: 3.1.12 -> 3.1.13

https://github.com/psycopg/psycopg/releases/tag/3.1.13
This commit is contained in:
Martin Weinelt 2023-11-21 03:09:00 +01:00
parent f91fd8b00d
commit 668965f913
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -35,13 +35,13 @@
let let
pname = "psycopg"; pname = "psycopg";
version = "3.1.12"; version = "3.1.13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "psycopg"; owner = "psycopg";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-2fd21aSCjwSwk8G0uS3cPGzLZfPVoJl2V5dG+akfCrE="; hash = "sha256-N+x8RErlId1uBgXZjBBjtPxqJXGuXZEl78DKVKjhy9w=";
}; };
patches = [ patches = [
@ -51,12 +51,12 @@ let
libc = "${stdenv.cc.libc}/lib/libc.so.6"; libc = "${stdenv.cc.libc}/lib/libc.so.6";
}) })
# https://github.com/psycopg/psycopg/pull/669
# mark some tests as timing remove on next version update
(fetchpatch { (fetchpatch {
name = "mark_tests_as_timing.patch"; # fix environment variables leaking into test environment
url = "https://github.com/psycopg/psycopg/commit/00a3c640dd836328ba15931b400b012171f648c2.patch"; # https://github.com/psycopg/psycopg/pull/683
hash = "sha256-DoVZv1yy9gHOKl0AdVLir+C+UztJZVjboLhS5af2944="; # https://github.com/psycopg/psycopg/issues/681
url = "https://github.com/psycopg/psycopg/commit/f060855aa6126e811de243c7213d2caff9c88123.patch";
hash = "sha256-QsFxK8Qasw9kbNCUUCqbOHaf53kT5NONlr28vGoPda0=";
}) })
]; ];
@ -188,12 +188,13 @@ buildPythonPackage rec {
env = { env = {
postgresqlEnableTCP = 1; postgresqlEnableTCP = 1;
PGUSER = "psycopg"; PGUSER = "psycopg";
PGDATABASE = "psycopg";
}; };
preCheck = '' preCheck = ''
cd .. cd ..
'' + lib.optionalString (stdenv.isLinux) '' '' + lib.optionalString (stdenv.isLinux) ''
export PSYCOPG_TEST_DSN="host=127.0.0.1 user=$PGUSER" export PSYCOPG_TEST_DSN="host=/build/run/postgresql user=$PGUSER"
''; '';
disabledTests = [ disabledTests = [