python310Packages.psycopg: fix build with Cython 3.0.0b1

This commit is contained in:
Robert Schütz 2023-04-03 17:29:46 -07:00
parent cc1f75044b
commit 5c5dc43305

View file

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, fetchurl
, pythonOlder
, substituteAll
@ -48,6 +49,11 @@ let
libpq = "${postgresql.lib}/lib/libpq${stdenv.hostPlatform.extensions.sharedLibrary}";
libc = "${stdenv.cc.libc}/lib/libc.so.6";
})
(fetchpatch {
name = "cython-3.0.0b1-compat.patch";
url = "https://github.com/psycopg/psycopg/commit/573446a14312f36257ed9dcfb8eb2756b69d5d9b.patch";
hash = "sha256-NWItarNb/Yyfj1avb/SXTkinVGxvWUGH8y6tR/zhVmE=";
})
];
baseMeta = {