python312Packages.psycopg: 3.1.17 -> 3.1.19

https://github.com/psycopg/psycopg/blob/3.1.19/docs/news.rst#current-release
This commit is contained in:
Martin Weinelt
2024-06-24 12:18:34 +02:00
parent f72ecfd58f
commit 9b42f76f44
2 changed files with 8 additions and 5 deletions
@@ -1,5 +1,5 @@
diff --git a/psycopg/psycopg/pq/_pq_ctypes.py b/psycopg/psycopg/pq/_pq_ctypes.py
index 9ca1d129..02929ab6 100644
index cfc68672..02929ab6 100644
--- a/psycopg/psycopg/pq/_pq_ctypes.py
+++ b/psycopg/psycopg/pq/_pq_ctypes.py
@@ -11,14 +11,10 @@ from ctypes import Structure, CFUNCTYPE, POINTER
@@ -18,12 +18,15 @@ index 9ca1d129..02929ab6 100644
class FILE(Structure):
@@ -28,9 +24,7 @@ class FILE(Structure):
@@ -28,12 +24,7 @@ class FILE(Structure):
FILE_ptr = POINTER(FILE)
if sys.platform == "linux":
- libcname = ctypes.util.find_library("c")
- assert libcname
- if not libcname:
- # Likely this is a system using musl libc, see the following bug:
- # https://github.com/python/cpython/issues/65821
- libcname = "libc.so"
- libc = ctypes.cdll.LoadLibrary(libcname)
+ libc = ctypes.cdll.LoadLibrary("@libc@")
@@ -35,13 +35,13 @@
let
pname = "psycopg";
version = "3.1.17";
version = "3.1.19";
src = fetchFromGitHub {
owner = "psycopg";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Paq4Wkvv6d6+fNcvRO/yfj7OWCMygqccKIdfsohHUMM=";
hash = "sha256-Fvg67sGWSNwChZTO5QdLSOKrbGfxzQZJqCjI5Jidcqo=";
};
patches = [