gnu: python-ldaptor: Fix build on python@3.12.

* gnu/packages/python-web.scm (python-ldaptor)[arguments]<#:phases>:
Add phase python-3.12-patch.

Change-Id: I10157ab41a5a5f78c4166a5c0a76ab9028ffd54d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves
2026-04-20 00:15:41 +02:00
committed by Andreas Enge
parent f9b6cc9fab
commit 90de53ffa5

View File

@@ -1780,6 +1780,11 @@ reusable library for parsing, manipulating, and generating URIs.")
"ldaptor")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'python-3.12-patch
(lambda _
(substitute* "ldaptor/config.py"
(("SafeConfigParser")
"ConfigParser"))))
(add-before 'check 'disable-failing-tests
(lambda _
;; Testing with Twisted 22.4 results in infinite loop creating