lol

python312Packages.logilab-common: fix test failure on Python 3.12

+6
+6
pkgs/development/python-modules/logilab/common.nix
··· 4 4 , importlib-metadata 5 5 , mypy-extensions 6 6 , pytestCheckHook 7 + , pythonAtLeast 7 8 , pythonOlder 8 9 , pytz 9 10 , setuptools ··· 21 22 inherit pname version; 22 23 hash = "sha256-ojvR2k3Wpj5Ej0OS57I4aFX/cGFVeL/PmT7riCTelws="; 23 24 }; 25 + 26 + postPatch = lib.optionals (pythonAtLeast "3.12") '' 27 + substituteInPlace logilab/common/testlib.py \ 28 + --replace-fail "_TextTestResult" "TextTestResult" 29 + ''; 24 30 25 31 build-system = [ 26 32 setuptools