diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 2c3fe3754e2b..98c0e7119adc 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -3106,4 +3106,10 @@ self: super: { } ) super.push-notify-apn; + # Python 3.12 breaks unicode C-API. Requires an upstream fix in the CPython + # package to support Python > 3.12 API. Thus, should be removed at next CPython + # Hackage release. + cpython = super.cpython.override { + python3 = pkgs.python311; + }; } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super